This object represents a chat.
Instance methods
first_name
Optional. First name of the other party in a private chat
Sourcefirst_name=(first_name :
String |
Nil)
Optional. First name of the other party in a private chat
Sourceid
Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
SourceUnique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
Sourceis_direct_messages=(is_direct_messages :
Bool |
Nil)
Optional. True, if the chat is the direct messages chat of a channel
Sourceis_direct_messages?
Optional. True, if the chat is the direct messages chat of a channel
Sourceis_forum=(is_forum :
Bool |
Nil)
Optional. True, if the supergroup chat is a forum (has topics enabled)
Sourceis_forum?
Optional. True, if the supergroup chat is a forum (has topics enabled)
Sourcelast_name
Optional. Last name of the other party in a private chat
Sourcelast_name=(last_name :
String |
Nil)
Optional. Last name of the other party in a private chat
Sourcetitle
Optional. Title, for supergroups, channels and group chats
SourceOptional. Title, for supergroups, channels and group chats
Sourcetype
Type of the chat, can be either "private", "group", "supergroup" or "channel"
SourceType of the chat, can be either "private", "group", "supergroup" or "channel"
Sourceusername
Optional. Username, for private chats, supergroups and channels if available
Sourceusername=(username :
String |
Nil)
Optional. Username, for private chats, supergroups and channels if available
Source