class
Hamilton::Types::ChatFullInfo
- Hamilton::Types::ChatFullInfo
- Reference
- Object
Overview
This object contains full information about a chat.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/chat_full_info.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#accent_color_id : Int32
Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview.
-
#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.
-
#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.
-
#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.
-
#active_usernames : Array(String) | Nil
If non-empty, the list of all active chat usernames; for private chats, supergroups and channels.
-
#active_usernames=(active_usernames : Array(String) | Nil)
If non-empty, the list of all active chat usernames; for private chats, supergroups and channels.
-
#available_reactions : Array(Hamilton::Types::ReactionType) | Nil
List of available reactions allowed in the chat.
-
#available_reactions=(available_reactions : Array(Hamilton::Types::ReactionType) | Nil)
List of available reactions allowed in the chat.
-
#background_custom_emoji_id : String | Nil
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 | Nil)
Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background.
-
#bio : String | Nil
Bio of the other party in a private chat.
-
#bio=(bio : String | Nil)
Bio of the other party in a private chat.
-
#birthdate : Hamilton::Types::Birthdate | Nil
For private chats, the date of birth of the user.
-
#birthdate=(birthdate : Hamilton::Types::Birthdate | Nil)
For private chats, the date of birth of the user.
-
#business_intro : Hamilton::Types::BusinessIntro | Nil
For private chats with business accounts, the intro of the business.
-
#business_intro=(business_intro : Hamilton::Types::BusinessIntro | Nil)
For private chats with business accounts, the intro of the business.
-
#business_location : Hamilton::Types::BusinessLocation | Nil
For private chats with business accounts, the location of the business.
-
#business_location=(business_location : Hamilton::Types::BusinessLocation | Nil)
For private chats with business accounts, the location of the business.
-
#business_opening_hours : Hamilton::Types::BusinessOpeningHours | Nil
For private chats with business accounts, the opening hours of the business.
-
#business_opening_hours=(business_opening_hours : Hamilton::Types::BusinessOpeningHours | Nil)
For private chats with business accounts, the opening hours of the business.
-
#can_send_paid_media : Bool | Nil
True, if paid media messages can be sent or forwarded to the channel chat.
-
#can_send_paid_media=(can_send_paid_media : Bool | Nil)
True, if paid media messages can be sent or forwarded to the channel chat.
-
#can_set_sticker_set : Bool | Nil
True, if the bot can change the group sticker set.
-
#can_set_sticker_set=(can_set_sticker_set : Bool | Nil)
True, if the bot can change the group sticker set.
-
#custom_emoji_sticker_set_name : String | Nil
For supergroups, the name of the group's custom emoji sticker set.
-
#custom_emoji_sticker_set_name=(custom_emoji_sticker_set_name : String | Nil)
For supergroups, the name of the group's custom emoji sticker set.
-
#description : String | Nil
Description, for groups, supergroups and channel chats.
-
#description=(description : String | Nil)
Description, for groups, supergroups and channel chats.
-
#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.
-
#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.
-
#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.
-
#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.
-
#first_name : String | Nil
First name of the other party in a private chat.
-
#first_name=(first_name : String | Nil)
First name of the other party in a private chat.
-
#has_aggressive_anti_spam_enabled : Bool | Nil
True, if aggressive anti-spam checks are enabled in the supergroup.
-
#has_aggressive_anti_spam_enabled=(has_aggressive_anti_spam_enabled : Bool | Nil)
True, if aggressive anti-spam checks are enabled in the supergroup.
-
#has_hidden_members : Bool | Nil
True, if non-administrators can only get the list of bots and administrators in the chat.
-
#has_hidden_members=(has_hidden_members : Bool | Nil)
True, if non-administrators can only get the list of bots and administrators in the chat.
-
#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.
-
#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.
-
#has_protected_content : Bool | Nil
True, if messages from the chat can't be forwarded to other chats.
-
#has_protected_content=(has_protected_content : Bool | Nil)
True, if messages from the chat can't be forwarded to other chats.
-
#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.
-
#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.
-
#has_visible_history : Bool | Nil
True, if new chat members will have access to old messages; available only to chat administrators.
-
#has_visible_history=(has_visible_history : Bool | Nil)
True, if new chat members will have access to old messages; available only to chat administrators.
-
#id : Int64
Unique identifier for this chat.
-
#id=(id : Int64)
Unique identifier for this chat.
-
#invite_link : String | Nil
Primary invite link, for groups, supergroups and channel chats.
-
#invite_link=(invite_link : String | Nil)
Primary invite link, for groups, supergroups and channel chats.
-
#is_direct_messaegs : Bool | Nil
True, if the chat is the direct messages chat of a channel.
-
#is_direct_messaegs=(is_direct_messaegs : Bool | Nil)
True, if the chat is the direct messages chat of a channel.
-
#is_forum : Bool | Nil
True, if the supergroup chat is a forum (has topics enabled).
-
#is_forum=(is_forum : Bool | Nil)
True, if the supergroup chat is a forum (has topics enabled).
-
#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.
-
#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.
-
#join_to_send_messages : Bool | Nil
True, if users need to join the supergroup before they can send messages.
-
#join_to_send_messages=(join_to_send_messages : Bool | Nil)
True, if users need to join the supergroup before they can send messages.
-
#last_name : String | Nil
Last name of the other party in a private chat.
-
#last_name=(last_name : String | Nil)
Last name of the other party in a private chat.
-
#linked_chat_id : Int64 | Nil
Unique identifier for the linked chat, i.e.
-
#linked_chat_id=(linked_chat_id : Int64 | Nil)
Unique identifier for the linked chat, i.e.
-
#location : Hamilton::Types::ChatLocation | Nil
For supergroups, the location to which the supergroup is connected.
-
#location=(location : Hamilton::Types::ChatLocation | Nil)
For supergroups, the location to which the supergroup is connected.
-
#max_reaction_count : Int32
The maximum number of reactions that can be set on a message in the chat.
-
#max_reaction_count=(max_reaction_count : Int32)
The maximum number of reactions that can be set on a message in the chat.
-
#message_auto_delete_time : Int32 | Nil
The time after which all messages sent to the chat will be automatically deleted; in seconds.
-
#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.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#parent_chat : Hamilton::Types::Chat | Nil
Information about the corresponding channel chat; for direct messages chats only.
-
#parent_chat=(parent_chat : Hamilton::Types::Chat | Nil)
Information about the corresponding channel chat; for direct messages chats only.
-
#permissions : Hamilton::Types::ChatPermissions | Nil
Default chat member permissions, for groups and supergroups.
-
#permissions=(permissions : Hamilton::Types::ChatPermissions | Nil)
Default chat member permissions, for groups and supergroups.
-
#personal_chat : Hamilton::Types::Chat | Nil
For private chats, the personal channel of the user.
-
#personal_chat=(personal_chat : Hamilton::Types::Chat | Nil)
For private chats, the personal channel of the user.
-
#photo : Hamilton::Types::ChatPhoto | Nil
Chat photo.
-
#photo=(photo : Hamilton::Types::ChatPhoto | Nil)
Chat photo.
-
#pinned_message : Hamilton::Types::Message | Nil
The most recent pinned message (by sending date).
-
#pinned_message=(pinned_message : Hamilton::Types::Message | Nil)
The most recent pinned message (by sending date).
-
#profile_accent_color_id : Int32 | Nil
Identifier of the accent color for the chat's profile background.
-
#profile_accent_color_id=(profile_accent_color_id : Int32 | Nil)
Identifier of the accent color for the chat's profile background.
-
#profile_background_custom_emoji_id : String | Nil
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 | Nil)
Custom emoji identifier of the emoji chosen by the chat for its profile background.
-
#slow_mode_delay : Int32 | Nil
For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds.
-
#slow_mode_delay=(slow_mode_delay : Int32 | Nil)
For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds.
-
#sticker_set_name : String | Nil
For supergroups, name of the group sticker set.
-
#sticker_set_name=(sticker_set_name : String | Nil)
For supergroups, name of the group sticker set.
-
#title : String | Nil
Title, for supergroups, channels and group chats.
-
#title=(title : String | Nil)
Title, for supergroups, channels and group chats.
-
#type : String
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”.
-
#type=(type : String)
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”.
-
#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.
-
#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.
-
#username : String | Nil
Username, for private chats, supergroups and channels if available.
-
#username=(username : String | Nil)
Username, for private chats, supergroups and channels if available.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview.
Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview.
Information about types of gifts that are accepted by the chat or by the corresponding user for private chats.
Information about types of gifts that are accepted by the chat or by the corresponding user for private chats.
If non-empty, the list of all active chat usernames; for private chats, supergroups and channels.
If non-empty, the list of all active chat usernames; for private chats, supergroups and channels.
List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background.
Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background.
For private chats, the date of birth of the user.
For private chats, the date of birth of the user.
For private chats with business accounts, the intro of the business.
For private chats with business accounts, the intro of the business.
For private chats with business accounts, the location of the business.
For private chats with business accounts, the location of the business.
For private chats with business accounts, the opening hours of the business.
For private chats with business accounts, the opening hours of the business.
True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.
True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.
True, if the bot can change the group sticker set.
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.
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, for groups, supergroups and channel chats.
Custom emoji identifier of the emoji status of the chat or the other party in a private chat.
Custom emoji identifier of the emoji status of the chat or the other party in a private chat.
Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any.
Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any.
True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.
True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.
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.
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.
True, if messages from the chat can't be forwarded to other chats.
True, if messages from the chat can't be forwarded to other chats.
True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat.
True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat.
True, if new chat members will have access to old messages; available only to chat administrators.
True, if new chat members will have access to old messages; available only to chat administrators.
Primary invite link, for groups, supergroups and channel chats.
True, if the chat is the direct messages chat of a channel.
True, if the supergroup chat is a forum (has topics enabled).
True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators.
True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators.
True, if users need to join the supergroup before they can send messages.
True, if users need to join the supergroup before they can send messages.
Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats.
Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats.
For supergroups, the location to which the supergroup is connected.
For supergroups, the location to which the supergroup is connected.
The maximum number of reactions that can be set on a message in the chat.
The maximum number of reactions that can be set on a message in the chat.
The time after which all messages sent to the chat will be automatically deleted; in seconds.
The time after which all messages sent to the chat will be automatically deleted; in seconds.
Information about the corresponding channel chat; for direct messages chats only.
Information about the corresponding channel chat; for direct messages chats only.
Default chat member permissions, for groups and supergroups.
Default chat member permissions, for groups and supergroups.
For private chats, the personal channel of the user.
For private chats, the personal channel of the user.
The most recent pinned message (by sending date).
The most recent pinned message (by sending date).
Identifier of the accent color for the chat's profile background.
Identifier of the accent color for the chat's profile background.
Custom emoji identifier of the emoji chosen by the chat for its profile background.
Custom emoji identifier of the emoji chosen by the chat for its profile background.
For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds.
For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds.
For supergroups, name of the group sticker set.
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”.
For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions.
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, for private chats, supergroups and channels if available.