class

Tourmaline::ChatFullInfo

Inherits JSON::Serializable < Reference < Object

This object contains full information about a chat.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

accent_color_id

Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.

Source
accent_color_id=(accent_color_id : Int32 | Int64)

Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.

Source
accepted_gift_types

Information about types of gifts that are accepted by the chat or by the corresponding user for private chats

Source
accepted_gift_types=(accepted_gift_types : Tourmaline::AcceptedGiftTypes)

Information about types of gifts that are accepted by the chat or by the corresponding user for private chats

Source
active_usernames

Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels

Source
active_usernames=(active_usernames : Array(String))

Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels

Source
available_reactions

Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.

Source
available_reactions=(available_reactions : Array(Tourmaline::ReactionType))

Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.

Source
background_custom_emoji_id

Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background

Source
background_custom_emoji_id=(background_custom_emoji_id : String | Nil)

Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background

Source
bio

Optional. Bio of the other party in a private chat

Source
bio=(bio : String | Nil)

Optional. Bio of the other party in a private chat

Source
birthdate

Optional. For private chats, the date of birth of the user

Source
birthdate=(birthdate : Tourmaline::Birthdate | Nil)

Optional. For private chats, the date of birth of the user

Source
business_intro

Optional. For private chats with business accounts, the intro of the business

Source
business_intro=(business_intro : Tourmaline::BusinessIntro | Nil)

Optional. For private chats with business accounts, the intro of the business

Source
business_location

Optional. For private chats with business accounts, the location of the business

Source
business_location=(business_location : Tourmaline::BusinessLocation | Nil)

Optional. For private chats with business accounts, the location of the business

Source
business_opening_hours

Optional. For private chats with business accounts, the opening hours of the business

Source
business_opening_hours=(business_opening_hours : Tourmaline::BusinessOpeningHours | Nil)

Optional. For private chats with business accounts, the opening hours of the business

Source
can_send_paid_media=(can_send_paid_media : Bool | Nil)

Optional. True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.

Source
can_send_paid_media?

Optional. True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.

Source
can_set_sticker_set=(can_set_sticker_set : Bool | Nil)

Optional. True, if the bot can change the group sticker set

Source
can_set_sticker_set?

Optional. True, if the bot can change the group sticker set

Source
custom_emoji_sticker_set_name

Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.

Source
custom_emoji_sticker_set_name=(custom_emoji_sticker_set_name : String | Nil)

Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.

Source
description

Optional. Description, for groups, supergroups and channel chats

Source
description=(description : String | Nil)

Optional. Description, for groups, supergroups and channel chats

Source
emoji_status_custom_emoji_id

Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat

Source
emoji_status_custom_emoji_id=(emoji_status_custom_emoji_id : String | Nil)

Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat

Source
emoji_status_expiration_date

Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any

Source
emoji_status_expiration_date=(emoji_status_expiration_date : Time | Nil)

Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any

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
first_profile_audio

Optional. For private chats, the first audio added to the profile of the user

Source
first_profile_audio=(first_profile_audio : Tourmaline::Audio | Nil)

Optional. For private chats, the first audio added to the profile of the user

Source
has_aggressive_anti_spam_enabled=(has_aggressive_anti_spam_enabled : Bool | Nil)

Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.

Source
has_aggressive_anti_spam_enabled?

Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.

Source
has_hidden_members=(has_hidden_members : Bool | Nil)

Optional. True, if non-administrators can only get the list of bots and administrators in the chat

Source
has_hidden_members?

Optional. True, if non-administrators can only get the list of bots and administrators in the chat

Source
has_private_forwards=(has_private_forwards : Bool | Nil)

Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user

Source
has_private_forwards?

Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user

Source
has_protected_content=(has_protected_content : Bool | Nil)

Optional. True, if messages from the chat can't be forwarded to other chats

Source
has_protected_content?

Optional. True, if messages from the chat can't be forwarded to other chats

Source
has_restricted_voice_and_video_messages=(has_restricted_voice_and_video_messages : Bool | Nil)

Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat

Source
has_restricted_voice_and_video_messages?

Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat

Source
has_visible_history=(has_visible_history : Bool | Nil)

Optional. True, if new chat members will have access to old messages; available only to chat administrators

Source
has_visible_history?

Optional. True, if new chat members will have access to old messages; available only to chat administrators

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
join_by_request=(join_by_request : Bool | Nil)

Optional. True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators

Source
join_by_request?

Optional. True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators

Source
join_to_send_messages=(join_to_send_messages : Bool | Nil)

Optional. True, if users need to join the supergroup before they can send messages

Source
join_to_send_messages?

Optional. True, if users need to join the supergroup before they can send messages

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
linked_chat_id

Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

Source
linked_chat_id=(linked_chat_id : Int32 | Int64 | Nil)

Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

Source
location

Optional. For supergroups, the location to which the supergroup is connected

Source
location=(location : Tourmaline::ChatLocation | Nil)

Optional. For supergroups, the location to which the supergroup is connected

Source
max_reaction_count

The maximum number of reactions that can be set on a message in the chat

Source
max_reaction_count=(max_reaction_count : Int32 | Int64)

The maximum number of reactions that can be set on a message in the chat

Source
message_auto_delete_time

Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds

Source
message_auto_delete_time=(message_auto_delete_time : Time | Nil)

Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds

Source
parent_chat

Optional. Information about the corresponding channel chat; for direct messages chats only

Source
parent_chat=(parent_chat : Tourmaline::Chat | Nil)

Optional. Information about the corresponding channel chat; for direct messages chats only

Source
permissions

Optional. Default chat member permissions, for groups and supergroups

Source
permissions=(permissions : Tourmaline::ChatPermissions | Nil)

Optional. Default chat member permissions, for groups and supergroups

Source
personal_chat

Optional. For private chats, the personal channel of the user

Source
personal_chat=(personal_chat : Tourmaline::Chat | Nil)

Optional. For private chats, the personal channel of the user

Source
photo

Optional. Chat photo

Source
photo=(photo : Tourmaline::ChatPhoto | Nil)

Optional. Chat photo

Source
pinned_message

Optional. The most recent pinned message (by sending date)

Source
pinned_message=(pinned_message : Tourmaline::Message | Nil)

Optional. The most recent pinned message (by sending date)

Source
profile_accent_color_id

Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details.

Source
profile_accent_color_id=(profile_accent_color_id : Int32 | Int64 | Nil)

Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details.

Source
profile_background_custom_emoji_id

Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background

Source
profile_background_custom_emoji_id=(profile_background_custom_emoji_id : String | Nil)

Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background

Source
rating

Optional. For private chats, the rating of the user if any

Source
rating=(rating : Tourmaline::UserRating | Nil)

Optional. For private chats, the rating of the user if any

Source
slow_mode_delay

Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds

Source
slow_mode_delay=(slow_mode_delay : Int32 | Int64 | Nil)

Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds

Source
sticker_set_name

Optional. For supergroups, name of the group sticker set

Source
sticker_set_name=(sticker_set_name : String | Nil)

Optional. For supergroups, name of the group sticker set

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
unique_gift_colors

Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews

Source
unique_gift_colors=(unique_gift_colors : Tourmaline::UniqueGiftColors | Nil)

Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews

Source
unrestrict_boost_count

Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions

Source
unrestrict_boost_count=(unrestrict_boost_count : Int32 | Int64 | Nil)

Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions

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