teloxide-fork-core 0.15.0

Core part of the `teloxide` library - telegram bot API client
Documentation
//! Generated by `codegen_payloads`, do not edit by hand.

use serde::Serialize;

use crate::types::{MessageEntity, ParseMode, Recipient, True};

impl_payload! {
    /// Verifies a chat [on behalf of the organization] which is represented by the bot. Returns _true_ on success.
    ///
    /// [on behalf of the organization]: https://telegram.org/verify#third-party-verification
    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
    pub VerifyChat (VerifyChatSetters) => True {
        required {
            /// Unique identifier for the target chat or username of the target channel
            pub chat_id: Recipient [into],
        }
        optional {
            /// Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description.
            pub custom_description: String [into],
            /// Mode for parsing entities in the custom description. See [formatting options] for more details. Only “text_link” entities are supported.
            ///
            /// [formatting options]: https://core.telegram.org/bots/api#formatting-options
            pub custom_description_parse_mode: ParseMode,
            /// A JSON-serialized list of special entities that appear in the custom description, which can be specified instead of *custom_description_parse_mode*. Only “text_link” entities are supported.
            pub custom_description_entities: Vec<MessageEntity> [collect],
        }
    }
}