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)
#
(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)
Methods#
#accent_color_id : Int32 | Int64
#
: 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.
#accent_color_id=(accent_color_id : Int32 | Int64)
#
(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.
#active_usernames : Array(String)
#
: Array(String)
Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels
#active_usernames=(active_usernames : Array(String))
#
(active_usernames : Array(String))
Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels
#available_reactions : Array(Tourmaline::ReactionType)
#
: Array(Tourmaline::ReactionType)
Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
#available_reactions=(available_reactions : Array(Tourmaline::ReactionType))
#
(available_reactions : Array(Tourmaline::ReactionType))
Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
#background_custom_emoji_id : String?
#
: String?
Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background
#background_custom_emoji_id=(background_custom_emoji_id : String?)
#
(background_custom_emoji_id : String?)
Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background
#birthdate : Tourmaline::Birthdate?
#
: Tourmaline::Birthdate?
Optional. For private chats, the date of birth of the user
#birthdate=(birthdate : Tourmaline::Birthdate?)
#
(birthdate : Tourmaline::Birthdate?)
Optional. For private chats, the date of birth of the user
#business_intro : Tourmaline::BusinessIntro?
#
: Tourmaline::BusinessIntro?
Optional. For private chats with business accounts, the intro of the business
#business_intro=(business_intro : Tourmaline::BusinessIntro?)
#
(business_intro : Tourmaline::BusinessIntro?)
Optional. For private chats with business accounts, the intro of the business
#business_location : Tourmaline::BusinessLocation?
#
: Tourmaline::BusinessLocation?
Optional. For private chats with business accounts, the location of the business
#business_location=(business_location : Tourmaline::BusinessLocation?)
#
(business_location : Tourmaline::BusinessLocation?)
Optional. For private chats with business accounts, the location of the business
#business_opening_hours : Tourmaline::BusinessOpeningHours?
#
: Tourmaline::BusinessOpeningHours?
Optional. For private chats with business accounts, the opening hours of the business
#business_opening_hours=(business_opening_hours : Tourmaline::BusinessOpeningHours?)
#
(business_opening_hours : Tourmaline::BusinessOpeningHours?)
Optional. For private chats with business accounts, the opening hours of the business
#can_set_sticker_set=(can_set_sticker_set : Bool?)
#
(can_set_sticker_set : Bool?)
Optional. True, if the bot can change the group sticker set
#can_set_sticker_set? : Bool?
#
: Bool?
Optional. True, if the bot can change the group sticker set
#custom_emoji_sticker_set_name : String?
#
: 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.
#custom_emoji_sticker_set_name=(custom_emoji_sticker_set_name : String?)
#
(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.
#description : String?
#
: String?
Optional. Description, for groups, supergroups and channel chats
#description=(description : String?)
#
(description : String?)
Optional. Description, for groups, supergroups and channel chats
#emoji_status_custom_emoji_id : String?
#
: String?
Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat
#emoji_status_custom_emoji_id=(emoji_status_custom_emoji_id : String?)
#
(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
#first_name=(first_name : String?)
#
(first_name : String?)
Optional. First name of the other party in a private chat
#has_aggressive_anti_spam_enabled=(has_aggressive_anti_spam_enabled : Bool?)
#
(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.
#has_aggressive_anti_spam_enabled? : Bool?
#
: Bool?
Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.
#has_hidden_members=(has_hidden_members : Bool?)
#
(has_hidden_members : Bool?)
Optional. True, if non-administrators can only get the list of bots and administrators in the chat
#has_hidden_members? : Bool?
#
: Bool?
Optional. True, if non-administrators can only get the list of bots and administrators in the chat
#has_private_forwards=(has_private_forwards : Bool?)
#
(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
#has_private_forwards? : Bool?
#
: 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
#has_protected_content=(has_protected_content : Bool?)
#
(has_protected_content : Bool?)
Optional. True, if messages from the chat can't be forwarded to other chats
#has_protected_content? : Bool?
#
: Bool?
Optional. True, if messages from the chat can't be forwarded to other chats
#has_restricted_voice_and_video_messages=(has_restricted_voice_and_video_messages : Bool?)
#
(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
#has_restricted_voice_and_video_messages? : Bool?
#
: Bool?
Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat
#has_visible_history=(has_visible_history : Bool?)
#
(has_visible_history : Bool?)
Optional. True, if new chat members will have access to old messages; available only to chat administrators
#has_visible_history? : Bool?
#
: Bool?
Optional. True, if new chat members will have access to old messages; available only to chat administrators
#id : Int32 | Int64
#
: 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.
#id=(id : Int32 | Int64)
#
(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.
#invite_link : String?
#
: String?
Optional. Primary invite link, for groups, supergroups and channel chats
#invite_link=(invite_link : String?)
#
(invite_link : String?)
Optional. Primary invite link, for groups, supergroups and channel chats
#is_forum=(is_forum : Bool?)
#
(is_forum : Bool?)
Optional. True, if the supergroup chat is a forum (has topics enabled)
#is_forum? : Bool?
#
: Bool?
Optional. True, if the supergroup chat is a forum (has topics enabled)
#join_by_request=(join_by_request : Bool?)
#
(join_by_request : Bool?)
Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators
#join_by_request? : Bool?
#
: Bool?
Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators
#join_to_send_messages=(join_to_send_messages : Bool?)
#
(join_to_send_messages : Bool?)
Optional. True, if users need to join the supergroup before they can send messages
#join_to_send_messages? : Bool?
#
: Bool?
Optional. True, if users need to join the supergroup before they can send messages
#last_name=(last_name : String?)
#
(last_name : String?)
Optional. Last name of the other party in a private chat
#linked_chat_id : Int32 | Int64 | Nil
#
: 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.
#linked_chat_id=(linked_chat_id : Int32 | Int64 | Nil)
#
(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.
#location : Tourmaline::ChatLocation?
#
: Tourmaline::ChatLocation?
Optional. For supergroups, the location to which the supergroup is connected
#location=(location : Tourmaline::ChatLocation?)
#
(location : Tourmaline::ChatLocation?)
Optional. For supergroups, the location to which the supergroup is connected
#max_reaction_count : Int32 | Int64
#
: Int32 | Int64
The maximum number of reactions that can be set on a message in the chat
#max_reaction_count=(max_reaction_count : Int32 | Int64)
#
(max_reaction_count : Int32 | Int64)
The maximum number of reactions that can be set on a message in the chat
#permissions : Tourmaline::ChatPermissions?
#
: Tourmaline::ChatPermissions?
Optional. Default chat member permissions, for groups and supergroups
#permissions=(permissions : Tourmaline::ChatPermissions?)
#
(permissions : Tourmaline::ChatPermissions?)
Optional. Default chat member permissions, for groups and supergroups
#personal_chat : Tourmaline::Chat?
#
: Tourmaline::Chat?
Optional. For private chats, the personal channel of the user
#personal_chat=(personal_chat : Tourmaline::Chat?)
#
(personal_chat : Tourmaline::Chat?)
Optional. For private chats, the personal channel of the user
#pinned_message : Tourmaline::Message?
#
: Tourmaline::Message?
Optional. The most recent pinned message (by sending date)
#pinned_message=(pinned_message : Tourmaline::Message?)
#
(pinned_message : Tourmaline::Message?)
Optional. The most recent pinned message (by sending date)
#profile_accent_color_id : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details.
#profile_accent_color_id=(profile_accent_color_id : Int32 | Int64 | Nil)
#
(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.
#profile_background_custom_emoji_id : String?
#
: String?
Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background
#profile_background_custom_emoji_id=(profile_background_custom_emoji_id : String?)
#
(profile_background_custom_emoji_id : String?)
Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background
#slow_mode_delay : Int32 | Int64 | Nil
#
: Int32 | Int64 | Nil
Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds
#slow_mode_delay=(slow_mode_delay : Int32 | Int64 | Nil)
#
(slow_mode_delay : Int32 | Int64 | Nil)
Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds
#sticker_set_name=(sticker_set_name : String?)
#
(sticker_set_name : String?)
Optional. For supergroups, name of the group sticker set
#type : String
#
: String
Type of the chat, can be either "private", "group", "supergroup" or "channel"
#type=(type : String)
#
(type : String)
Type of the chat, can be either "private", "group", "supergroup" or "channel"
#unrestrict_boost_count : Int32 | Int64 | Nil
#
: 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
#unrestrict_boost_count=(unrestrict_boost_count : Int32 | Int64 | Nil)
#
(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
#username : String?
#
: String?
Optional. Username, for private chats, supergroups and channels if available
#username=(username : String?)
#
(username : String?)
Optional. Username, for private chats, supergroups and channels if available