pub struct Chat { /* fields omitted */ }
This object represents a chat.
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 of chat, can be either “private”, “group”, “supergroup” or “channel”
Title, for supergroups, channels and group chats
Username, for private chats, supergroups and channels if available
First name of the other party in a private chat
Last name of the other party in a private chat
True if a group has ‘All Members Are Admins’ enabled.
Chat photo. Returned only in getChat.
Description, for supergroups and channel chats. Returned only in getChat.
Chat invite link, for supergroups and channel chats. Returned only in getChat.
Pinned message, for supergroups and channel chats. Returned only in getChat.
For supergroups, name of group sticker set. Returned only in getChat.
True, if the bot can change the group sticker set. Returned only in getChat.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static