class Tourmaline::Chat
inherits Reference
#
This object represents a chat.
Included modules
JSON::Serializable
Constructors#
.new(id, type, title : String? = nil, username : String? = nil, first_name : String? = nil, last_name : String? = nil, is_forum : Bool? = nil)
#
(id, type, title : String? = nil, username : String? = nil, first_name : String? = nil, last_name : String? = nil, is_forum : Bool? = nil)
Methods#
#first_name=(first_name : String?)
#
(first_name : String?)
Optional. First name of the other party in a private chat
#id : Int32 | Int64
#
: Int32 | Int64
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.
#id=(id : Int32 | Int64)
#
(id : Int32 | Int64)
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.
#is_forum=(is_forum : Bool?)
#
(is_forum : Bool?)
Optional. True, if the supergroup chat is a forum (has topics enabled)
#is_forum? : Bool?
#
: Bool?
Optional. True, if the supergroup chat is a forum (has topics enabled)
#last_name=(last_name : String?)
#
(last_name : String?)
Optional. Last name of the other party in a private chat
#type : String
#
: String
Type of the chat, can be either "private", "group", "supergroup" or "channel"
#type=(type : String)
#
(type : String)
Type of the chat, can be either "private", "group", "supergroup" or "channel"
#username : String?
#
: String?
Optional. Username, for private chats, supergroups and channels if available
#username=(username : String?)
#
(username : String?)
Optional. Username, for private chats, supergroups and channels if available