class Hamilton::Types::ChatFullInfo

Overview

This object contains full information about a chat.

Included Modules

Defined in:

types/chat_full_info.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def accent_color_id : Int32 #

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


def accent_color_id=(accent_color_id : Int32) #

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


def accepted_gift_types : Hamilton::Types::AcceptedGiftTypes #

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


def accepted_gift_types=(accepted_gift_types : Hamilton::Types::AcceptedGiftTypes) #

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


def active_usernames : Array(String) | Nil #

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


def active_usernames=(active_usernames : Array(String) | Nil) #

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


def available_reactions : Array(Hamilton::Types::ReactionType) | Nil #

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


def available_reactions=(available_reactions : Array(Hamilton::Types::ReactionType) | Nil) #

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


def background_custom_emoji_id : String | Nil #

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


def background_custom_emoji_id=(background_custom_emoji_id : String | Nil) #

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


def bio : String | Nil #

Bio of the other party in a private chat.


def bio=(bio : String | Nil) #

Bio of the other party in a private chat.


def birthdate : Hamilton::Types::Birthdate | Nil #

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


def birthdate=(birthdate : Hamilton::Types::Birthdate | Nil) #

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


def business_intro : Hamilton::Types::BusinessIntro | Nil #

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


def business_intro=(business_intro : Hamilton::Types::BusinessIntro | Nil) #

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


def business_location : Hamilton::Types::BusinessLocation | Nil #

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


def business_location=(business_location : Hamilton::Types::BusinessLocation | Nil) #

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


def business_opening_hours : Hamilton::Types::BusinessOpeningHours | Nil #

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


def business_opening_hours=(business_opening_hours : Hamilton::Types::BusinessOpeningHours | Nil) #

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


def can_send_paid_media : Bool | Nil #

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


def can_send_paid_media=(can_send_paid_media : Bool | Nil) #

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


def can_set_sticker_set : Bool | Nil #

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


def can_set_sticker_set=(can_set_sticker_set : Bool | Nil) #

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


def custom_emoji_sticker_set_name : String | Nil #

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.


def custom_emoji_sticker_set_name=(custom_emoji_sticker_set_name : String | Nil) #

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.


def description : String | Nil #

Description, for groups, supergroups and channel chats.


def description=(description : String | Nil) #

Description, for groups, supergroups and channel chats.


def emoji_status_custom_emoji_id : String | Nil #

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


def emoji_status_custom_emoji_id=(emoji_status_custom_emoji_id : String | Nil) #

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


def emoji_status_expiration_date : Int32 | Nil #

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


def emoji_status_expiration_date=(emoji_status_expiration_date : Int32 | Nil) #

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


def first_name : String | Nil #

First name of the other party in a private chat.


def first_name=(first_name : String | Nil) #

First name of the other party in a private chat.


def has_aggressive_anti_spam_enabled : Bool | Nil #

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


def has_aggressive_anti_spam_enabled=(has_aggressive_anti_spam_enabled : Bool | Nil) #

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


def has_hidden_members : Bool | Nil #

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


def has_hidden_members=(has_hidden_members : Bool | Nil) #

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


def has_private_forwards : Bool | Nil #

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.


def has_private_forwards=(has_private_forwards : Bool | Nil) #

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.


def has_protected_content : Bool | Nil #

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


def has_protected_content=(has_protected_content : Bool | Nil) #

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


def has_restricted_voice_and_video_messages : Bool | Nil #

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


def has_restricted_voice_and_video_messages=(has_restricted_voice_and_video_messages : Bool | Nil) #

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


def has_visible_history : Bool | Nil #

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


def has_visible_history=(has_visible_history : Bool | Nil) #

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


def id : Int64 #

Unique identifier for this chat.


def id=(id : Int64) #

Unique identifier for this chat.


def invite_link : String | Nil #

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


def invite_link=(invite_link : String | Nil) #

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


def is_direct_messaegs : Bool | Nil #

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


def is_direct_messaegs=(is_direct_messaegs : Bool | Nil) #

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


def is_forum : Bool | Nil #

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


def is_forum=(is_forum : Bool | Nil) #

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


def join_by_request : Bool | Nil #

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


def join_by_request=(join_by_request : Bool | Nil) #

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


def join_to_send_messages : Bool | Nil #

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


def join_to_send_messages=(join_to_send_messages : Bool | Nil) #

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


def last_name : String | Nil #

Last name of the other party in a private chat.


def last_name=(last_name : String | Nil) #

Last name of the other party in a private chat.


def linked_chat_id : Int64 | Nil #

Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats.


def linked_chat_id=(linked_chat_id : Int64 | Nil) #

Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats.


def location : Hamilton::Types::ChatLocation | Nil #

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


def location=(location : Hamilton::Types::ChatLocation | Nil) #

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


def max_reaction_count : Int32 #

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


def max_reaction_count=(max_reaction_count : Int32) #

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


def message_auto_delete_time : Int32 | Nil #

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


def message_auto_delete_time=(message_auto_delete_time : Int32 | Nil) #

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


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def parent_chat : Hamilton::Types::Chat | Nil #

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


def parent_chat=(parent_chat : Hamilton::Types::Chat | Nil) #

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


def permissions : Hamilton::Types::ChatPermissions | Nil #

Default chat member permissions, for groups and supergroups.


def permissions=(permissions : Hamilton::Types::ChatPermissions | Nil) #

Default chat member permissions, for groups and supergroups.


def personal_chat : Hamilton::Types::Chat | Nil #

For private chats, the personal channel of the user.


def personal_chat=(personal_chat : Hamilton::Types::Chat | Nil) #

For private chats, the personal channel of the user.


def photo : Hamilton::Types::ChatPhoto | Nil #

Chat photo.


def photo=(photo : Hamilton::Types::ChatPhoto | Nil) #

Chat photo.


def pinned_message : Hamilton::Types::Message | Nil #

The most recent pinned message (by sending date).


def pinned_message=(pinned_message : Hamilton::Types::Message | Nil) #

The most recent pinned message (by sending date).


def profile_accent_color_id : Int32 | Nil #

Identifier of the accent color for the chat's profile background.


def profile_accent_color_id=(profile_accent_color_id : Int32 | Nil) #

Identifier of the accent color for the chat's profile background.


def profile_background_custom_emoji_id : String | Nil #

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


def profile_background_custom_emoji_id=(profile_background_custom_emoji_id : String | Nil) #

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


def slow_mode_delay : Int32 | Nil #

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


def slow_mode_delay=(slow_mode_delay : Int32 | Nil) #

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


def sticker_set_name : String | Nil #

For supergroups, name of the group sticker set.


def sticker_set_name=(sticker_set_name : String | Nil) #

For supergroups, name of the group sticker set.


def title : String | Nil #

Title, for supergroups, channels and group chats.


def title=(title : String | Nil) #

Title, for supergroups, channels and group chats.


def type : String #

Type of the chat, can be either “private”, “group”, “supergroup” or “channel”.


def type=(type : String) #

Type of the chat, can be either “private”, “group”, “supergroup” or “channel”.


def unrestrict_boost_count : Int32 | Nil #

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


def unrestrict_boost_count=(unrestrict_boost_count : Int32 | Nil) #

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


def username : String | Nil #

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


def username=(username : String | Nil) #

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