class
Hamilton::Types::Chat
- Hamilton::Types::Chat
- Reference
- Object
Overview
This object represents a chat.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/chat.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#first_name : String | Nil
First name of the other party in a private chat.
-
#first_name=(first_name : String | Nil)
First name of the other party in a private chat.
-
#id : Int64
Unique identifier for this chat.
-
#id=(id : Int64)
Unique identifier for this chat.
-
#is_direct_messaegs : Bool | Nil
True, if the chat is the direct messages chat of a channel.
-
#is_direct_messaegs=(is_direct_messaegs : Bool | Nil)
True, if the chat is the direct messages chat of a channel.
-
#is_forum : Bool | Nil
True, if the supergroup chat is a forum (has topics enabled).
-
#is_forum=(is_forum : Bool | Nil)
True, if the supergroup chat is a forum (has topics enabled).
-
#last_name : String | Nil
Last name of the other party in a private chat.
-
#last_name=(last_name : String | Nil)
Last name of the other party in a private chat.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#title : String | Nil
Title, for supergroups, channels and group chats.
-
#title=(title : String | Nil)
Title, for supergroups, channels and group chats.
-
#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
Username, for private chats, supergroups and channels if available.
-
#username=(username : String | Nil)
Username, for private chats, supergroups and channels if available.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
True, if the chat is the direct messages chat of a channel.
True, if the supergroup chat is a forum (has topics enabled).
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”.
Username, for private chats, supergroups and channels if available.