class Tourmaline::Chat
- Tourmaline::Chat
- Reference
- Object
Overview
This object represents a chat.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crtourmaline/types/custom/chat.cr
Constructors
- .new(id : Int32 | Int64, type : String, title : String | Nil = nil, username : String | Nil = nil, first_name : String | Nil = nil, last_name : String | Nil = nil, is_forum : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #channel?
-
#first_name : String | Nil
Optional.
-
#first_name=(first_name : String | Nil)
Optional.
- #group?
-
#id : Int32 | Int64
Unique identifier for this chat.
-
#id=(id : Int32 | Int64)
Unique identifier for this chat.
-
#is_forum=(is_forum : Bool | Nil)
Optional.
-
#is_forum? : Bool | Nil
Optional.
-
#last_name : String | Nil
Optional.
-
#last_name=(last_name : String | Nil)
Optional.
- #name
- #private?
- #supergroup?
-
#title : String | Nil
Optional.
-
#title=(title : String | Nil)
Optional.
-
#type : String
Type of the chat, can be either "private", "group", "supergroup" or "channel"
-
#type=(type : String)
Type of the chat, can be either "private", "group", "supergroup" or "channel"
-
#username : String | Nil
Optional.
-
#username=(username : String | Nil)
Optional.
Constructor Detail
Instance Method Detail
Optional. First name of the other party in a private chat
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.
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.
Optional. True, if the supergroup chat is a forum (has topics enabled)
Type of the chat, can be either "private", "group", "supergroup" or "channel"
Optional. Username, for private chats, supergroups and channels if available
Optional. Username, for private chats, supergroups and channels if available