teloxide_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, Recipient, UserId};
6
7impl_payload! {
8    /// Use this method to get information about a member of a chat. Returns a [`ChatMember`] object on success.
9    ///
10    /// [`ChatMember`]: crate::types::ChatMember
11    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12    pub GetChatMember (GetChatMemberSetters) => ChatMember {
13        required {
14            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
15            pub chat_id: Recipient [into],
16            /// Unique identifier of the target user
17            pub user_id: UserId,
18        }
19    }
20}