PrivateChat
Internal type for private chats
Properties
id
id: number;
Unique identifier for this chat.
type
type: "private";
Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
title
title?: undefined;
Title, for supergroups, channels and group chats
username
username?: string;
Username, for private chats, supergroups and channels if available
first_name
first_name: string;
First name of the other party in a private chat
last_name
last_name?: string;
Last name of the other party in a private chat
is_forum
is_forum?: undefined;
True, if the supergroup chat is a forum (has topics enabled)
accent_color_id
accent_color_id: number;
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.
max_reaction_count
max_reaction_count: number;
The maximum number of reactions that can be set on a message in the chat
photo
photo?: ChatPhoto;
Chat photo
active_usernames
active_usernames?: string[];
If non-empty, the list of all active chat usernames; for private chats, supergroups and channels
birthdate
birthdate?: Birthdate;
For private chats, the date of birth of the user
business_intro
business_intro?: BusinessIntro;
For private chats with business accounts, the intro of the business
business_location
business_location?: BusinessLocation;
For private chats with business accounts, the location of the business
business_opening_hours
business_opening_hours?: BusinessOpeningHours;
For private chats with business accounts, the opening hours of the business
personal_chat
personal_chat?: Chat;
For private chats, the personal channel of the user
available_reactions
available_reactions?: ReactionType[];
List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
background_custom_emoji_id
background_custom_emoji_id?: string;
Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background
profile_accent_color_id
profile_accent_color_id?: number;
Identifier of the accent color for the chat’s profile background. See profile accent colors for more details.
profile_background_custom_emoji_id
profile_background_custom_emoji_id?: string;
Custom emoji identifier of the emoji chosen by the chat for its profile background
emoji_status_custom_emoji_id
emoji_status_custom_emoji_id?: string;
Custom emoji identifier of the emoji status of the chat or the other party in a private chat
emoji_status_expiration_date
emoji_status_expiration_date?: number;
Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any
bio
bio?: string;
Bio of the other party in a private chat
has_private_forwards
has_private_forwards?: true;
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_restricted_voice_and_video_messages
has_restricted_voice_and_video_messages?: true;
True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat
join_to_send_messages
join_to_send_messages?: undefined;
True, if users need to join the supergroup before they can send messages
join_by_request
join_by_request?: undefined;
True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators
description
description?: undefined;
Description, for groups, supergroups and channel chats
invite_link
invite_link?: undefined;
Primary invite link, for groups, supergroups and channel chats
pinned_message
pinned_message?: Message;
The most recent pinned message (by sending date)
permissions
permissions?: undefined;
Default chat member permissions, for groups and supergroups
slow_mode_delay
slow_mode_delay?: undefined;
For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds
unrestrict_boost_count
unrestrict_boost_count?: undefined;
For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions
message_auto_delete_time
message_auto_delete_time?: number;
The time after which all messages sent to the chat will be automatically deleted; in seconds
has_aggressive_anti_spam_enabled
has_aggressive_anti_spam_enabled?: undefined;
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?: undefined;
True, if non-administrators can only get the list of bots and administrators in the chat
has_protected_content
has_protected_content?: true;
True, if messages from the chat can’t be forwarded to other chats
has_visible_history
has_visible_history?: undefined;
True, if new chat members will have access to old messages; available only to chat administrators
sticker_set_name
sticker_set_name?: undefined;
For supergroups, name of the group sticker set
can_set_sticker_set
can_set_sticker_set?: undefined;
True, if the bot can change the group sticker set
custom_emoji_sticker_set_name
custom_emoji_sticker_set_name?: undefined;
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.
linked_chat_id
linked_chat_id?: undefined;
Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats.
location
location?: undefined;
For supergroups, the location to which the supergroup is connected
can_send_paid_media
can_send_paid_media?: undefined;
True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.