Skip to main content

ronami_core/payloads/
get_chat_administrators.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::ChatMember;
6use crate::types::Recipient;
7
8impl_payload! {
9    /// Use this method to get a list of administrators in a chat. On success, returns an Array of [`ChatMember`] objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.
10    ///
11    /// [`ChatMember`]: crate::types::ChatMember
12    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13    pub GetChatAdministrators (GetChatAdministratorsSetters) => Vec<ChatMember> {
14        required {
15            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
16            pub chat_id: Recipient [into],
17        }
18        optional {
19            /// Pass _True_ to also return bots in the list
20            pub return_bots: bool,
21        }
22    }
23}