Skip to main content

teloxide_core/payloads/
verify_user.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{MessageEntity, ParseMode, True, UserId};
6
7impl_payload! {
8    /// Verifies a user [on behalf of the organization] which is represented by the bot. Returns _true_ on success.
9    ///
10    /// [on behalf of the organization]: https://telegram.org/verify#third-party-verification
11    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12    pub VerifyUser (VerifyUserSetters) => True {
13        required {
14            /// Unique identifier of the target user
15            pub user_id: UserId,
16        }
17        optional {
18            /// Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description.
19            pub custom_description: String [into],
20            /// Mode for parsing entities in the custom description. See [formatting options] for more details. Only “text_link” entities are supported.
21            ///
22            /// [formatting options]: https://core.telegram.org/bots/api#formatting-options
23            pub custom_description_parse_mode: ParseMode,
24            /// 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.
25            pub custom_description_entities: Vec<MessageEntity> [collect],
26        }
27    }
28}