BPT\types\chat

Extended by : BPT\types\types

This object represents a chat.

Properties
Name Type Description Kind
id int 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. normal
type string Type of chat, can be either “private”, “group”, “supergroup” or “channel” normal
title string Optional. Title, for supergroups, channels and group chats normal
username string Optional. Username, for private chats, supergroups and channels if available normal
first_name string Optional. First name of the other party in a private chat normal
last_name string Optional. Last name of the other party in a private chat normal
is_forum bool Optional. True, if the supergroup chat is a forum (has topics enabled) normal
photo BPT\types\chatPhoto Optional. Chat photo. Returned only in getChat. normal
active_usernames string[] Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat. normal
emoji_status_custom_emoji_id string Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat. normal
bio string Optional. Bio of the other party in a private chat. Returned only in getChat. normal
has_private_forwards bool Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id= links only in chats with the user. Returned only in getChat. normal
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. Returned only in getChat. normal
join_to_send_messages bool Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat. normal
join_by_request bool Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat. normal
description string Optional. Description, for groups, supergroups and channel chats. Returned only in getChat. normal
invite_link string Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. normal
pinned_message BPT\types\message Optional. The most recent pinned message (by sending date). Returned only in getChat. normal
permissions BPT\types\chatPermissions Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. normal
slow_mode_delay int Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat. normal
message_auto_delete_time int Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat. normal
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. Returned only in getChat. normal
has_hidden_members bool Optional. True, if non-administrators can only get the list of bots and administrators in the chat. Returned only in getChat. normal
has_protected_content bool Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. normal
sticker_set_name string Optional. For supergroups, name of group sticker set. Returned only in getChat. normal
can_set_sticker_set bool Optional. True, if the bot can change the group sticker set. Returned only in getChat. normal
linked_chat_id int 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. Returned only in getChat. normal
location BPT\types\chatLocation Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. normal