Struct wdg_telegram_types::Chat
[−]
[src]
pub struct Chat { pub _id: i32, pub _type: String, pub _title: Option<String>, pub _username: Option<String>, pub _first_name: Option<String>, pub _last_name: Option<String>, pub _all_members_are_administrators: Option<bool>, pub _photo: Option<ChatPhoto>, pub _description: Option<String>, pub _invite_link: Option<String>, pub _pinned_message: Option<Box<Message>>, }
This object represents a chat.
Fields
_id: i32
Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
_type: String
Type of chat, can be either “private”, “group”, “supergroup” or “channel”
_title: Option<String>
Optional. Title, for supergroups, channels and group chats
_username: Option<String>
Optional. Username, for private chats, supergroups and channels if available
_first_name: Option<String>
Optional. First name of the other party in a private chat
_last_name: Option<String>
Optional. Last name of the other party in a private chat
_all_members_are_administrators: Option<bool>
Optional. True if a group has ‘All Members Are Admins’ enabled.
_photo: Option<ChatPhoto>
Optional. Chat photo. Returned only in getChat.
_description: Option<String>
Optional. Description, for supergroups and channel chats. Returned only in getChat.
_invite_link: Option<String>
Optional. Chat invite link, for supergroups and channel chats. Returned only in getChat.
_pinned_message: Option<Box<Message>>
Optional. Pinned message, for supergroups. Returned only in getChat.