class Tourmaline::ChatFullInfo

Overview

This object contains full information about a chat.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def 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]
def 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]
def active_usernames : Array(String) #

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


[View source]
def 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]
def available_reactions : Array(Tourmaline::ReactionType) #

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


[View source]
def 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]
def 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


[View source]
def 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


[View source]
def bio : String | Nil #

Optional. Bio of the other party in a private chat


[View source]
def bio=(bio : String | Nil) #

Optional. Bio of the other party in a private chat


[View source]
def birthdate : Tourmaline::Birthdate | Nil #

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


[View source]
def birthdate=(birthdate : Tourmaline::Birthdate | Nil) #

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


[View source]
def business_intro : Tourmaline::BusinessIntro | Nil #

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


[View source]
def business_intro=(business_intro : Tourmaline::BusinessIntro | Nil) #

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


[View source]
def business_location : Tourmaline::BusinessLocation | Nil #

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


[View source]
def business_location=(business_location : Tourmaline::BusinessLocation | Nil) #

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


[View source]
def business_opening_hours : Tourmaline::BusinessOpeningHours | Nil #

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


[View source]
def business_opening_hours=(business_opening_hours : Tourmaline::BusinessOpeningHours | Nil) #

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


[View source]
def 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.


[View source]
def 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.


[View source]
def can_set_sticker_set=(can_set_sticker_set : Bool | Nil) #

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


[View source]
def can_set_sticker_set? : Bool | Nil #

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


[View source]
def 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.


[View source]
def 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.


[View source]
def description : String | Nil #

Optional. Description, for groups, supergroups and channel chats


[View source]
def description=(description : String | Nil) #

Optional. Description, for groups, supergroups and channel chats


[View source]
def 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


[View source]
def 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


[View source]
def 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


[View source]
def 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


[View source]
def first_name : String | Nil #

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


[View source]
def first_name=(first_name : String | Nil) #

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


[View source]
def 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.


[View source]
def 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.


[View source]
def 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


[View source]
def has_hidden_members? : Bool | Nil #

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


[View source]
def 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


[View source]
def 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


[View source]
def has_protected_content=(has_protected_content : Bool | Nil) #

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


[View source]
def has_protected_content? : Bool | Nil #

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


[View source]
def 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


[View source]
def 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


[View source]
def 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


[View source]
def has_visible_history? : Bool | Nil #

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


[View source]
def 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]
def 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]
def invite_link : String | Nil #

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


[View source]
def invite_link=(invite_link : String | Nil) #

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


[View source]
def is_forum=(is_forum : Bool | Nil) #

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


[View source]
def is_forum? : Bool | Nil #

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


[View source]
def 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


[View source]
def 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


[View source]
def join_to_send_messages=(join_to_send_messages : Bool | Nil) #

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


[View source]
def join_to_send_messages? : Bool | Nil #

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


[View source]
def last_name : String | Nil #

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


[View source]
def last_name=(last_name : String | Nil) #

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


[View source]
def 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]
def 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]
def location : Tourmaline::ChatLocation | Nil #

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


[View source]
def location=(location : Tourmaline::ChatLocation | Nil) #

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


[View source]
def max_reaction_count : Int32 | Int64 #

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


[View source]
def 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]
def message_auto_delete_time : Time | Nil #

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


[View source]
def 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


[View source]
def permissions : Tourmaline::ChatPermissions | Nil #

Optional. Default chat member permissions, for groups and supergroups


[View source]
def permissions=(permissions : Tourmaline::ChatPermissions | Nil) #

Optional. Default chat member permissions, for groups and supergroups


[View source]
def personal_chat : Tourmaline::Chat | Nil #

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


[View source]
def personal_chat=(personal_chat : Tourmaline::Chat | Nil) #

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


[View source]
def photo : Tourmaline::ChatPhoto | Nil #

Optional. Chat photo


[View source]
def photo=(photo : Tourmaline::ChatPhoto | Nil) #

Optional. Chat photo


[View source]
def pinned_message : Tourmaline::Message | Nil #

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


[View source]
def pinned_message=(pinned_message : Tourmaline::Message | Nil) #

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


[View source]
def 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]
def 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]
def profile_background_custom_emoji_id : String | Nil #

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


[View source]
def 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


[View source]
def 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]
def 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]
def sticker_set_name : String | Nil #

Optional. For supergroups, name of the group sticker set


[View source]
def sticker_set_name=(sticker_set_name : String | Nil) #

Optional. For supergroups, name of the group sticker set


[View source]
def title : String | Nil #

Optional. Title, for supergroups, channels and group chats


[View source]
def title=(title : String | Nil) #

Optional. Title, for supergroups, channels and group chats


[View source]
def type : String #

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


[View source]
def type=(type : String) #

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


[View source]
def 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]
def 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]
def username : String | Nil #

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


[View source]
def username=(username : String | Nil) #

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


[View source]