teloxide_core/payloads/
verify_chat.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{Recipient, True};
6
7impl_payload! {
8    /// Verifies a chat [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 VerifyChat (VerifyChatSetters) => True {
13        required {
14            /// Unique identifier for the target chat or username of the target channel
15            pub chat_id: Recipient [into],
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        }
21    }
22}