tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::chat Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::chat:
td::td_api::Object td::TlObject

Public Member Functions

 chat ()
 
 chat (int53 id_, object_ptr< ChatType > &&type_, string const &title_, object_ptr< chatPhotoInfo > &&photo_, int32 accent_color_id_, int64 background_custom_emoji_id_, object_ptr< upgradedGiftColors > &&upgraded_gift_colors_, int32 profile_accent_color_id_, int64 profile_background_custom_emoji_id_, object_ptr< chatPermissions > &&permissions_, object_ptr< message > &&last_message_, array< object_ptr< chatPosition > > &&positions_, array< object_ptr< ChatList > > &&chat_lists_, object_ptr< MessageSender > &&message_sender_id_, object_ptr< BlockList > &&block_list_, bool has_protected_content_, bool is_translatable_, bool is_marked_as_unread_, bool view_as_topics_, bool has_scheduled_messages_, bool can_be_deleted_only_for_self_, bool can_be_deleted_for_all_users_, bool can_be_reported_, bool default_disable_notification_, int32 unread_count_, int53 last_read_inbox_message_id_, int53 last_read_outbox_message_id_, int32 unread_mention_count_, int32 unread_reaction_count_, int32 unread_poll_vote_count_, object_ptr< chatNotificationSettings > &&notification_settings_, object_ptr< ChatAvailableReactions > &&available_reactions_, int32 message_auto_delete_time_, object_ptr< emojiStatus > &&emoji_status_, object_ptr< chatBackground > &&background_, object_ptr< ChatTheme > &&theme_, object_ptr< ChatActionBar > &&action_bar_, object_ptr< businessBotManageBar > &&business_bot_manage_bar_, object_ptr< videoChat > &&video_chat_, object_ptr< chatJoinRequestsInfo > &&pending_join_requests_, int53 reply_markup_message_id_, object_ptr< draftMessage > &&draft_message_, string const &client_data_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

int53 id_
 Chat unique identifier.
 
object_ptr< ChatTypetype_
 Type of the chat.
 
string title_
 Chat title.
 
object_ptr< chatPhotoInfophoto_
 Chat photo; may be null.
 
int32 accent_color_id_
 Identifier of the accent color for message sender name, and backgrounds of chat photo, reply header, and link preview.
 
int64 background_custom_emoji_id_
 Identifier of a custom emoji to be shown on the reply header and link preview background for messages sent by the chat; 0 if none.
 
object_ptr< upgradedGiftColorsupgraded_gift_colors_
 Color scheme based on an upgraded gift to be used for the chat instead of accent_color_id and background_custom_emoji_id; may be null if none.
 
int32 profile_accent_color_id_
 Identifier of the profile accent color for the chat&#x27;s profile; -1 if none.
 
int64 profile_background_custom_emoji_id_
 Identifier of a custom emoji to be shown on the background of the chat&#x27;s profile; 0 if none.
 
object_ptr< chatPermissionspermissions_
 Actions that non-administrator chat members are allowed to take in the chat.
 
object_ptr< messagelast_message_
 Last message in the chat; may be null if none or unknown.
 
array< object_ptr< chatPosition > > positions_
 Positions of the chat in chat lists.
 
array< object_ptr< ChatList > > chat_lists_
 Chat lists to which the chat belongs. A chat can have a non-zero position in a chat list even if it doesn&#x27;t belong to the chat list and have no position in a chat list even if it belongs to the chat list.
 
object_ptr< MessageSendermessage_sender_id_
 Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can&#x27;t change message sender.
 
object_ptr< BlockListblock_list_
 Block list to which the chat is added; may be null if none.
 
bool has_protected_content_
 True, if chat content can&#x27;t be saved locally, forwarded, or copied.
 
bool is_translatable_
 True, if translation of all messages in the chat must be suggested to the user.
 
bool is_marked_as_unread_
 True, if the chat is marked as unread.
 
bool view_as_topics_
 True, if the chat is a forum supergroup that must be shown in the "View as topics" mode, or Saved Messages chat that must be shown in the "View as chats".
 
bool has_scheduled_messages_
 True, if the chat has scheduled messages.
 
bool can_be_deleted_only_for_self_
 True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.
 
bool can_be_deleted_for_all_users_
 True, if the chat messages can be deleted for all users.
 
bool can_be_reported_
 True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.
 
bool default_disable_notification_
 Default value of the disable_notification parameter, used when a message is sent to the chat.
 
int32 unread_count_
 Number of unread messages in the chat.
 
int53 last_read_inbox_message_id_
 Identifier of the last read incoming message.
 
int53 last_read_outbox_message_id_
 Identifier of the last read outgoing message.
 
int32 unread_mention_count_
 Number of unread messages with a mention/reply in the chat.
 
int32 unread_reaction_count_
 Number of messages with unread reactions in the chat.
 
int32 unread_poll_vote_count_
 Number of messages with unread poll votes in the chat.
 
object_ptr< chatNotificationSettingsnotification_settings_
 Notification settings for the chat.
 
object_ptr< ChatAvailableReactionsavailable_reactions_
 Types of reaction, available in the chat.
 
int32 message_auto_delete_time_
 Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date.
 
object_ptr< emojiStatusemoji_status_
 Emoji status to be shown along with chat title; may be null.
 
object_ptr< chatBackgroundbackground_
 Background set for the chat; may be null if none.
 
object_ptr< ChatThemetheme_
 Theme set for the chat; may be null if none.
 
object_ptr< ChatActionBaraction_bar_
 Information about actions which must be possible to do through the chat action bar; may be null if none.
 
object_ptr< businessBotManageBarbusiness_bot_manage_bar_
 Information about bar for managing a business bot in the chat; may be null if none.
 
object_ptr< videoChatvideo_chat_
 Information about video chat of the chat.
 
object_ptr< chatJoinRequestsInfopending_join_requests_
 Information about pending join requests; may be null if none.
 
int53 reply_markup_message_id_
 Identifier of the message from which reply markup needs to be used; 0 if there is no reply markup in the chat.
 
object_ptr< draftMessagedraft_message_
 A draft of a message in the chat; may be null if none.
 
string client_data_
 Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used.
 

Static Public Attributes

static const std::int32_t ID = -520699983
 Identifier uniquely determining a type of the object.
 

Detailed Description

A chat. (Can be a private chat, basic group, supergroup, or secret chat).

Definition at line 8659 of file td_api.h.

Constructor & Destructor Documentation

◆ chat() [1/2]

td::td_api::chat::chat ( )

A chat. (Can be a private chat, basic group, supergroup, or secret chat).

◆ chat() [2/2]

td::td_api::chat::chat ( int53  id_,
object_ptr< ChatType > &&  type_,
string const &  title_,
object_ptr< chatPhotoInfo > &&  photo_,
int32  accent_color_id_,
int64  background_custom_emoji_id_,
object_ptr< upgradedGiftColors > &&  upgraded_gift_colors_,
int32  profile_accent_color_id_,
int64  profile_background_custom_emoji_id_,
object_ptr< chatPermissions > &&  permissions_,
object_ptr< message > &&  last_message_,
array< object_ptr< chatPosition > > &&  positions_,
array< object_ptr< ChatList > > &&  chat_lists_,
object_ptr< MessageSender > &&  message_sender_id_,
object_ptr< BlockList > &&  block_list_,
bool  has_protected_content_,
bool  is_translatable_,
bool  is_marked_as_unread_,
bool  view_as_topics_,
bool  has_scheduled_messages_,
bool  can_be_deleted_only_for_self_,
bool  can_be_deleted_for_all_users_,
bool  can_be_reported_,
bool  default_disable_notification_,
int32  unread_count_,
int53  last_read_inbox_message_id_,
int53  last_read_outbox_message_id_,
int32  unread_mention_count_,
int32  unread_reaction_count_,
int32  unread_poll_vote_count_,
object_ptr< chatNotificationSettings > &&  notification_settings_,
object_ptr< ChatAvailableReactions > &&  available_reactions_,
int32  message_auto_delete_time_,
object_ptr< emojiStatus > &&  emoji_status_,
object_ptr< chatBackground > &&  background_,
object_ptr< ChatTheme > &&  theme_,
object_ptr< ChatActionBar > &&  action_bar_,
object_ptr< businessBotManageBar > &&  business_bot_manage_bar_,
object_ptr< videoChat > &&  video_chat_,
object_ptr< chatJoinRequestsInfo > &&  pending_join_requests_,
int53  reply_markup_message_id_,
object_ptr< draftMessage > &&  draft_message_,
string const &  client_data_ 
)

A chat. (Can be a private chat, basic group, supergroup, or secret chat).

Parameters
[in]id_Chat unique identifier.
[in]type_Type of the chat.
[in]title_Chat title.
[in]photo_Chat photo; may be null.
[in]accent_color_id_Identifier of the accent color for message sender name, and backgrounds of chat photo, reply header, and link preview.
[in]background_custom_emoji_id_Identifier of a custom emoji to be shown on the reply header and link preview background for messages sent by the chat; 0 if none.
[in]upgraded_gift_colors_Color scheme based on an upgraded gift to be used for the chat instead of accent_color_id and background_custom_emoji_id; may be null if none.
[in]profile_accent_color_id_Identifier of the profile accent color for the chat&#x27;s profile; -1 if none.
[in]profile_background_custom_emoji_id_Identifier of a custom emoji to be shown on the background of the chat&#x27;s profile; 0 if none.
[in]permissions_Actions that non-administrator chat members are allowed to take in the chat.
[in]last_message_Last message in the chat; may be null if none or unknown.
[in]positions_Positions of the chat in chat lists.
[in]chat_lists_Chat lists to which the chat belongs. A chat can have a non-zero position in a chat list even if it doesn&#x27;t belong to the chat list and have no position in a chat list even if it belongs to the chat list.
[in]message_sender_id_Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can&#x27;t change message sender.
[in]block_list_Block list to which the chat is added; may be null if none.
[in]has_protected_content_True, if chat content can&#x27;t be saved locally, forwarded, or copied.
[in]is_translatable_True, if translation of all messages in the chat must be suggested to the user.
[in]is_marked_as_unread_True, if the chat is marked as unread.
[in]view_as_topics_True, if the chat is a forum supergroup that must be shown in the "View as topics" mode, or Saved Messages chat that must be shown in the "View as chats".
[in]has_scheduled_messages_True, if the chat has scheduled messages.
[in]can_be_deleted_only_for_self_True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.
[in]can_be_deleted_for_all_users_True, if the chat messages can be deleted for all users.
[in]can_be_reported_True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.
[in]default_disable_notification_Default value of the disable_notification parameter, used when a message is sent to the chat.
[in]unread_count_Number of unread messages in the chat.
[in]last_read_inbox_message_id_Identifier of the last read incoming message.
[in]last_read_outbox_message_id_Identifier of the last read outgoing message.
[in]unread_mention_count_Number of unread messages with a mention/reply in the chat.
[in]unread_reaction_count_Number of messages with unread reactions in the chat.
[in]unread_poll_vote_count_Number of messages with unread poll votes in the chat.
[in]notification_settings_Notification settings for the chat.
[in]available_reactions_Types of reaction, available in the chat.
[in]message_auto_delete_time_Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date.
[in]emoji_status_Emoji status to be shown along with chat title; may be null.
[in]background_Background set for the chat; may be null if none.
[in]theme_Theme set for the chat; may be null if none.
[in]action_bar_Information about actions which must be possible to do through the chat action bar; may be null if none.
[in]business_bot_manage_bar_Information about bar for managing a business bot in the chat; may be null if none.
[in]video_chat_Information about video chat of the chat.
[in]pending_join_requests_Information about pending join requests; may be null if none.
[in]reply_markup_message_id_Identifier of the message from which reply markup needs to be used; 0 if there is no reply markup in the chat.
[in]draft_message_A draft of a message in the chat; may be null if none.
[in]client_data_Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used.

Member Function Documentation

◆ store()

void td::td_api::chat::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ accent_color_id_

int32 td::td_api::chat::accent_color_id_

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

Definition at line 8678 of file td_api.h.

◆ action_bar_

object_ptr<ChatActionBar> td::td_api::chat::action_bar_

Information about actions which must be possible to do through the chat action bar; may be null if none.

Definition at line 8742 of file td_api.h.

◆ available_reactions_

object_ptr<ChatAvailableReactions> td::td_api::chat::available_reactions_

Types of reaction, available in the chat.

Definition at line 8732 of file td_api.h.

◆ background_

object_ptr<chatBackground> td::td_api::chat::background_

Background set for the chat; may be null if none.

Definition at line 8738 of file td_api.h.

◆ background_custom_emoji_id_

int64 td::td_api::chat::background_custom_emoji_id_

Identifier of a custom emoji to be shown on the reply header and link preview background for messages sent by the chat; 0 if none.

Definition at line 8680 of file td_api.h.

◆ block_list_

object_ptr<BlockList> td::td_api::chat::block_list_

Block list to which the chat is added; may be null if none.

Definition at line 8698 of file td_api.h.

◆ business_bot_manage_bar_

object_ptr<businessBotManageBar> td::td_api::chat::business_bot_manage_bar_

Information about bar for managing a business bot in the chat; may be null if none.

Definition at line 8744 of file td_api.h.

◆ can_be_deleted_for_all_users_

bool td::td_api::chat::can_be_deleted_for_all_users_

True, if the chat messages can be deleted for all users.

Definition at line 8712 of file td_api.h.

◆ can_be_deleted_only_for_self_

bool td::td_api::chat::can_be_deleted_only_for_self_

True, if the chat messages can be deleted only for the current user while other users will continue to see the messages.

Definition at line 8710 of file td_api.h.

◆ can_be_reported_

bool td::td_api::chat::can_be_reported_

True, if the chat can be reported to Telegram moderators through reportChat or reportChatPhoto.

Definition at line 8714 of file td_api.h.

◆ chat_lists_

array<object_ptr<ChatList> > td::td_api::chat::chat_lists_

Chat lists to which the chat belongs. A chat can have a non-zero position in a chat list even if it doesn&#x27;t belong to the chat list and have no position in a chat list even if it belongs to the chat list.

Definition at line 8694 of file td_api.h.

◆ client_data_

string td::td_api::chat::client_data_

Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used.

Definition at line 8754 of file td_api.h.

◆ default_disable_notification_

bool td::td_api::chat::default_disable_notification_

Default value of the disable_notification parameter, used when a message is sent to the chat.

Definition at line 8716 of file td_api.h.

◆ draft_message_

object_ptr<draftMessage> td::td_api::chat::draft_message_

A draft of a message in the chat; may be null if none.

Definition at line 8752 of file td_api.h.

◆ emoji_status_

object_ptr<emojiStatus> td::td_api::chat::emoji_status_

Emoji status to be shown along with chat title; may be null.

Definition at line 8736 of file td_api.h.

◆ has_protected_content_

bool td::td_api::chat::has_protected_content_

True, if chat content can&#x27;t be saved locally, forwarded, or copied.

Definition at line 8700 of file td_api.h.

◆ has_scheduled_messages_

bool td::td_api::chat::has_scheduled_messages_

True, if the chat has scheduled messages.

Definition at line 8708 of file td_api.h.

◆ ID

const std::int32_t td::td_api::chat::ID = -520699983
static

Identifier uniquely determining a type of the object.

Definition at line 8811 of file td_api.h.

◆ id_

int53 td::td_api::chat::id_

Chat unique identifier.

Definition at line 8670 of file td_api.h.

◆ is_marked_as_unread_

bool td::td_api::chat::is_marked_as_unread_

True, if the chat is marked as unread.

Definition at line 8704 of file td_api.h.

◆ is_translatable_

bool td::td_api::chat::is_translatable_

True, if translation of all messages in the chat must be suggested to the user.

Definition at line 8702 of file td_api.h.

◆ last_message_

object_ptr<message> td::td_api::chat::last_message_

Last message in the chat; may be null if none or unknown.

Definition at line 8690 of file td_api.h.

◆ last_read_inbox_message_id_

int53 td::td_api::chat::last_read_inbox_message_id_

Identifier of the last read incoming message.

Definition at line 8720 of file td_api.h.

◆ last_read_outbox_message_id_

int53 td::td_api::chat::last_read_outbox_message_id_

Identifier of the last read outgoing message.

Definition at line 8722 of file td_api.h.

◆ message_auto_delete_time_

int32 td::td_api::chat::message_auto_delete_time_

Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date.

Definition at line 8734 of file td_api.h.

◆ message_sender_id_

object_ptr<MessageSender> td::td_api::chat::message_sender_id_

Identifier of a user or chat that is selected to send messages in the chat; may be null if the user can&#x27;t change message sender.

Definition at line 8696 of file td_api.h.

◆ notification_settings_

object_ptr<chatNotificationSettings> td::td_api::chat::notification_settings_

Notification settings for the chat.

Definition at line 8730 of file td_api.h.

◆ pending_join_requests_

object_ptr<chatJoinRequestsInfo> td::td_api::chat::pending_join_requests_

Information about pending join requests; may be null if none.

Definition at line 8748 of file td_api.h.

◆ permissions_

object_ptr<chatPermissions> td::td_api::chat::permissions_

Actions that non-administrator chat members are allowed to take in the chat.

Definition at line 8688 of file td_api.h.

◆ photo_

object_ptr<chatPhotoInfo> td::td_api::chat::photo_

Chat photo; may be null.

Definition at line 8676 of file td_api.h.

◆ positions_

array<object_ptr<chatPosition> > td::td_api::chat::positions_

Positions of the chat in chat lists.

Definition at line 8692 of file td_api.h.

◆ profile_accent_color_id_

int32 td::td_api::chat::profile_accent_color_id_

Identifier of the profile accent color for the chat&#x27;s profile; -1 if none.

Definition at line 8684 of file td_api.h.

◆ profile_background_custom_emoji_id_

int64 td::td_api::chat::profile_background_custom_emoji_id_

Identifier of a custom emoji to be shown on the background of the chat&#x27;s profile; 0 if none.

Definition at line 8686 of file td_api.h.

◆ reply_markup_message_id_

int53 td::td_api::chat::reply_markup_message_id_

Identifier of the message from which reply markup needs to be used; 0 if there is no reply markup in the chat.

Definition at line 8750 of file td_api.h.

◆ theme_

object_ptr<ChatTheme> td::td_api::chat::theme_

Theme set for the chat; may be null if none.

Definition at line 8740 of file td_api.h.

◆ title_

string td::td_api::chat::title_

Chat title.

Definition at line 8674 of file td_api.h.

◆ type_

object_ptr<ChatType> td::td_api::chat::type_

Type of the chat.

Definition at line 8672 of file td_api.h.

◆ unread_count_

int32 td::td_api::chat::unread_count_

Number of unread messages in the chat.

Definition at line 8718 of file td_api.h.

◆ unread_mention_count_

int32 td::td_api::chat::unread_mention_count_

Number of unread messages with a mention/reply in the chat.

Definition at line 8724 of file td_api.h.

◆ unread_poll_vote_count_

int32 td::td_api::chat::unread_poll_vote_count_

Number of messages with unread poll votes in the chat.

Definition at line 8728 of file td_api.h.

◆ unread_reaction_count_

int32 td::td_api::chat::unread_reaction_count_

Number of messages with unread reactions in the chat.

Definition at line 8726 of file td_api.h.

◆ upgraded_gift_colors_

object_ptr<upgradedGiftColors> td::td_api::chat::upgraded_gift_colors_

Color scheme based on an upgraded gift to be used for the chat instead of accent_color_id and background_custom_emoji_id; may be null if none.

Definition at line 8682 of file td_api.h.

◆ video_chat_

object_ptr<videoChat> td::td_api::chat::video_chat_

Information about video chat of the chat.

Definition at line 8746 of file td_api.h.

◆ view_as_topics_

bool td::td_api::chat::view_as_topics_

True, if the chat is a forum supergroup that must be shown in the "View as topics" mode, or Saved Messages chat that must be shown in the "View as chats".

Definition at line 8706 of file td_api.h.


The documentation for this class was generated from the following file: