Skip to main content

ronami_core/payloads/
verify_user.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::True;
6use crate::types::UserId;
7
8impl_payload! {
9    /// Verifies a user [on behalf of the organization] which is represented by the bot. Returns _true_ on success.
10    ///
11    /// [on behalf of the organization]: https://telegram.org/verify#third-party-verification
12    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13    pub VerifyUser (VerifyUserSetters) => True {
14        required {
15            /// Unique identifier of the target user
16            pub user_id: UserId,
17        }
18        optional {
19            /// Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description.
20            pub custom_description: String [into],
21        }
22    }
23}