Skip to content

class Tourmaline::ChatFullInfo
inherits Reference #

This object contains full information about a chat.

Included modules

JSON::Serializable

Constructors#

.new(id, type, accent_color_id, max_reaction_count, title : String? = nil, username : String? = nil, first_name : String? = nil, last_name : String? = nil, is_forum : Bool? = nil, photo : Tourmaline::ChatPhoto? = nil, active_usernames : Array(String) = [] of String, birthdate : Tourmaline::Birthdate? = nil, business_intro : Tourmaline::BusinessIntro? = nil, business_location : Tourmaline::BusinessLocation? = nil, business_opening_hours : Tourmaline::BusinessOpeningHours? = nil, personal_chat : Tourmaline::Chat? = nil, available_reactions : Array(Tourmaline::ReactionType) = [] of Tourmaline::ReactionType, background_custom_emoji_id : String? = nil, profile_accent_color_id : Int32 | Int64 | Nil = nil, profile_background_custom_emoji_id : String? = nil, emoji_status_custom_emoji_id : String? = nil, emoji_status_expiration_date : Int32 | Int64 | Nil = nil, bio : String? = nil, has_private_forwards : Bool? = nil, has_restricted_voice_and_video_messages : Bool? = nil, join_to_send_messages : Bool? = nil, join_by_request : Bool? = nil, description : String? = nil, invite_link : String? = nil, pinned_message : Tourmaline::Message? = nil, permissions : Tourmaline::ChatPermissions? = nil, slow_mode_delay : Int32 | Int64 | Nil = nil, unrestrict_boost_count : Int32 | Int64 | Nil = nil, message_auto_delete_time : Int32 | Int64 | Nil = nil, has_aggressive_anti_spam_enabled : Bool? = nil, has_hidden_members : Bool? = nil, has_protected_content : Bool? = nil, has_visible_history : Bool? = nil, sticker_set_name : String? = nil, can_set_sticker_set : Bool? = nil, custom_emoji_sticker_set_name : String? = nil, linked_chat_id : Int32 | Int64 | Nil = nil, location : Tourmaline::ChatLocation? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#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.

View 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.

View source

#active_usernames : Array(String) #

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

View source

#active_usernames=(active_usernames : Array(String)) #

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

View source

#available_reactions : Array(Tourmaline::ReactionType) #

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

View 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.

View source

#background_custom_emoji_id : String? #

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

View source

#background_custom_emoji_id=(background_custom_emoji_id : String?) #

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

View source

#bio : String? #

Optional. Bio of the other party in a private chat

View source

#bio=(bio : String?) #

Optional. Bio of the other party in a private chat

View source

#birthdate : Tourmaline::Birthdate? #

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

View source

#birthdate=(birthdate : Tourmaline::Birthdate?) #

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

View source

#business_intro : Tourmaline::BusinessIntro? #

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

View source

#business_intro=(business_intro : Tourmaline::BusinessIntro?) #

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

View source

#business_location : Tourmaline::BusinessLocation? #

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

View source

#business_location=(business_location : Tourmaline::BusinessLocation?) #

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

View source

#business_opening_hours : Tourmaline::BusinessOpeningHours? #

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

View source

#business_opening_hours=(business_opening_hours : Tourmaline::BusinessOpeningHours?) #

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

View source

#can_set_sticker_set=(can_set_sticker_set : Bool?) #

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

View source

#can_set_sticker_set? : Bool? #

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

View source

#custom_emoji_sticker_set_name : String? #

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.

View source

#custom_emoji_sticker_set_name=(custom_emoji_sticker_set_name : String?) #

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.

View source

#description : String? #

Optional. Description, for groups, supergroups and channel chats

View source

#description=(description : String?) #

Optional. Description, for groups, supergroups and channel chats

View source

#emoji_status_custom_emoji_id : String? #

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

View source

#emoji_status_custom_emoji_id=(emoji_status_custom_emoji_id : String?) #

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

View source

#emoji_status_expiration_date : Time? #

View source

#emoji_status_expiration_date=(emoji_status_expiration_date : Time?) #

View source

#first_name : String? #

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

View source

#first_name=(first_name : String?) #

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

View source

#has_aggressive_anti_spam_enabled=(has_aggressive_anti_spam_enabled : Bool?) #

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

View source

#has_aggressive_anti_spam_enabled? : Bool? #

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

View source

#has_hidden_members=(has_hidden_members : Bool?) #

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

View source

#has_hidden_members? : Bool? #

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

View source

#has_private_forwards=(has_private_forwards : Bool?) #

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

View source

#has_private_forwards? : Bool? #

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

View source

#has_protected_content=(has_protected_content : Bool?) #

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

View source

#has_protected_content? : Bool? #

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

View source

#has_restricted_voice_and_video_messages=(has_restricted_voice_and_video_messages : Bool?) #

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

View source

#has_restricted_voice_and_video_messages? : Bool? #

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

View source

#has_visible_history=(has_visible_history : Bool?) #

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

View source

#has_visible_history? : Bool? #

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

View source

#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.

View 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.

View source

Optional. Primary invite link, for groups, supergroups and channel chats

View source

#invite_link=(invite_link : String?) #

Optional. Primary invite link, for groups, supergroups and channel chats

View source

#is_forum=(is_forum : Bool?) #

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

View source

#is_forum? : Bool? #

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

View source

#join_by_request=(join_by_request : Bool?) #

Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators

View source

#join_by_request? : Bool? #

Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators

View source

#join_to_send_messages=(join_to_send_messages : Bool?) #

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

View source

#join_to_send_messages? : Bool? #

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

View source

#last_name : String? #

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

View source

#last_name=(last_name : String?) #

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

View source

#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.

View 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.

View source

#location : Tourmaline::ChatLocation? #

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

View source

#location=(location : Tourmaline::ChatLocation?) #

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

View source

#max_reaction_count : Int32 | Int64 #

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

View source

#max_reaction_count=(max_reaction_count : Int32 | Int64) #

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

View source

#message_auto_delete_time : Time? #

View source

#message_auto_delete_time=(message_auto_delete_time : Time?) #

View source

#permissions : Tourmaline::ChatPermissions? #

Optional. Default chat member permissions, for groups and supergroups

View source

#permissions=(permissions : Tourmaline::ChatPermissions?) #

Optional. Default chat member permissions, for groups and supergroups

View source

#personal_chat : Tourmaline::Chat? #

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

View source

#personal_chat=(personal_chat : Tourmaline::Chat?) #

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

View source

#photo : Tourmaline::ChatPhoto? #

Optional. Chat photo

View source

#photo=(photo : Tourmaline::ChatPhoto?) #

Optional. Chat photo

View source

#pinned_message : Tourmaline::Message? #

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

View source

#pinned_message=(pinned_message : Tourmaline::Message?) #

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

View source

#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.

View 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.

View source

#profile_background_custom_emoji_id : String? #

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

View source

#profile_background_custom_emoji_id=(profile_background_custom_emoji_id : String?) #

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

View source

#slow_mode_delay : Int32 | Int64 | Nil #

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

View 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

View source

#sticker_set_name : String? #

Optional. For supergroups, name of the group sticker set

View source

#sticker_set_name=(sticker_set_name : String?) #

Optional. For supergroups, name of the group sticker set

View source

#title : String? #

Optional. Title, for supergroups, channels and group chats

View source

#title=(title : String?) #

Optional. Title, for supergroups, channels and group chats

View source

#type : String #

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

View source

#type=(type : String) #

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

View source

#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

View 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

View source

#username : String? #

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

View source

#username=(username : String?) #

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

View source