Skip to main content

ronami_core/payloads/
get_chat_member.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::ChatMember;
6use crate::types::Recipient;
7use crate::types::UserId;
8
9impl_payload! {
10    /// Use this method to get information about a member of a chat. Returns a [`ChatMember`] object on success.
11    ///
12    /// [`ChatMember`]: crate::types::ChatMember
13    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
14    pub GetChatMember (GetChatMemberSetters) => ChatMember {
15        required {
16            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
17            pub chat_id: Recipient [into],
18            /// Unique identifier of the target user
19            pub user_id: UserId,
20        }
21    }
22}