class

Tourmaline::Chat

Inherits JSON::Serializable < Reference < Object

This object represents a chat.

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, is_direct_messages : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

channel?
Source
first_name

Optional. First name of the other party in a private chat

Source
first_name=(first_name : String | Nil)

Optional. First name of the other party in a private chat

Source
group?
Source
id

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.

Source
id=(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.

Source
is_direct_messages=(is_direct_messages : Bool | Nil)

Optional. True, if the chat is the direct messages chat of a channel

Source
is_direct_messages?

Optional. True, if the chat is the direct messages chat of a channel

Source
is_forum=(is_forum : Bool | Nil)

Optional. True, if the supergroup chat is a forum (has topics enabled)

Source
is_forum?

Optional. True, if the supergroup chat is a forum (has topics enabled)

Source
last_name

Optional. Last name of the other party in a private chat

Source
last_name=(last_name : String | Nil)

Optional. Last name of the other party in a private chat

Source
name
Source
private?
Source
supergroup?
Source
title

Optional. Title, for supergroups, channels and group chats

Source
title=(title : String | Nil)

Optional. Title, for supergroups, channels and group chats

Source
type

Type of the chat, can be either "private", "group", "supergroup" or "channel"

Source
type=(type : String)

Type of the chat, can be either "private", "group", "supergroup" or "channel"

Source
username

Optional. Username, for private chats, supergroups and channels if available

Source
username=(username : String | Nil)

Optional. Username, for private chats, supergroups and channels if available

Source

Nested types