List of all members | Public Fields | Public Instance Methods | Static Public Attributes
chat Class Referencefinal

Inherits Object.

Description

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

Public Fields

int53 id_
 Chat unique identifier.
 
object_ptr< ChatTypetype_
 Type of the chat.
 
string title_
 Chat title.
 
object_ptr< chatPhotoInfophoto_
 Chat photo; may be null.
 
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.
 
array< object_ptr< chatPosition > > positions_
 Positions of the chat in chat lists.
 
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't change message sender.
 
bool has_protected_content_
 True, if chat content can't be saved locally, forwarded, or copied.
 
bool is_marked_as_unread_
 True, if the chat is marked as unread.
 
bool is_blocked_
 True, if the chat is blocked by the current user and private messages from the chat can't be received.
 
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.
 
object_ptr< chatNotificationSettingsnotification_settings_
 Notification settings for this chat.
 
int32 message_ttl_
 Current message Time To Live setting (self-destruct timer) for the chat; 0 if not defined. TTL is counted from the time message or its content is viewed in secret chats and from the send date in other chats.
 
string theme_name_
 If non-empty, name of a theme, set for the chat.
 
object_ptr< ChatActionBaraction_bar_
 Information about actions which must be possible to do through the chat action bar; may be null.
 
object_ptr< videoChatvideo_chat_
 Information about video chat of the chat.
 
object_ptr< chatJoinRequestsInfopending_join_requests_
 Information about pending join requests; may be null.
 
int53 reply_markup_message_id_
 Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.
 
object_ptr< draftMessagedraft_message_
 A draft of a message in the chat; may be null.
 
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.
 

Public Instance Methods

 chat ()
 
 chat (int53 id_, object_ptr< ChatType > &&type_, string const &title_, object_ptr< chatPhotoInfo > &&photo_, object_ptr< chatPermissions > &&permissions_, object_ptr< message > &&last_message_, array< object_ptr< chatPosition >> &&positions_, object_ptr< MessageSender > &&message_sender_id_, bool has_protected_content_, bool is_marked_as_unread_, bool is_blocked_, 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_, object_ptr< chatNotificationSettings > &&notification_settings_, int32 message_ttl_, string const &theme_name_, object_ptr< ChatActionBar > &&action_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_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from 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
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ chat() [1/2]

chat ( )

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

◆ chat() [2/2]

chat ( int53  id_,
object_ptr< ChatType > &&  type_,
string const &  title_,
object_ptr< chatPhotoInfo > &&  photo_,
object_ptr< chatPermissions > &&  permissions_,
object_ptr< message > &&  last_message_,
array< object_ptr< chatPosition >> &&  positions_,
object_ptr< MessageSender > &&  message_sender_id_,
bool  has_protected_content_,
bool  is_marked_as_unread_,
bool  is_blocked_,
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_,
object_ptr< chatNotificationSettings > &&  notification_settings_,
int32  message_ttl_,
string const &  theme_name_,
object_ptr< ChatActionBar > &&  action_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]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.
[in]positions_Positions of the chat in chat lists.
[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't change message sender.
[in]has_protected_content_True, if chat content can't be saved locally, forwarded, or copied.
[in]is_marked_as_unread_True, if the chat is marked as unread.
[in]is_blocked_True, if the chat is blocked by the current user and private messages from the chat can't be received.
[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]notification_settings_Notification settings for this chat.
[in]message_ttl_Current message Time To Live setting (self-destruct timer) for the chat; 0 if not defined. TTL is counted from the time message or its content is viewed in secret chats and from the send date in other chats.
[in]theme_name_If non-empty, name of a theme, set for the chat.
[in]action_bar_Information about actions which must be possible to do through the chat action bar; may be null.
[in]video_chat_Information about video chat of the chat.
[in]pending_join_requests_Information about pending join requests; may be null.
[in]reply_markup_message_id_Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat.
[in]draft_message_A draft of a message in the chat; may be null.
[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.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

◆ store()

void 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 TlObject.


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