TDLib
Loading...
Searching...
No Matches
td::td_api::archiveChatListSettings Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 archiveChatListSettings ()
 
 archiveChatListSettings (bool archive_and_mute_new_chats_from_unknown_users_, bool keep_unmuted_chats_archived_, bool keep_chats_from_folders_archived_)
 
std::int32_t get_id () const final
 
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

bool archive_and_mute_new_chats_from_unknown_users_
 True, if new chats from non-contacts will be automatically archived and muted. Can be set to true only if the option "can_archive_and_mute_new_chats_from_unknown_users" is true.
 
bool keep_unmuted_chats_archived_
 True, if unmuted chats will be kept in the Archive chat list when they get a new message.
 
bool keep_chats_from_folders_archived_
 True, if unmuted chats, that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_unmuted_chats_archived == true.
 

Static Public Attributes

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

Detailed Description

Contains settings for automatic moving of chats to and from the Archive chat lists.

Constructor & Destructor Documentation

◆ archiveChatListSettings() [1/2]

td::td_api::archiveChatListSettings::archiveChatListSettings ( )

Contains settings for automatic moving of chats to and from the Archive chat lists.

◆ archiveChatListSettings() [2/2]

td::td_api::archiveChatListSettings::archiveChatListSettings ( bool  archive_and_mute_new_chats_from_unknown_users_,
bool  keep_unmuted_chats_archived_,
bool  keep_chats_from_folders_archived_ 
)

Contains settings for automatic moving of chats to and from the Archive chat lists.

Parameters
[in]archive_and_mute_new_chats_from_unknown_users_True, if new chats from non-contacts will be automatically archived and muted. Can be set to true only if the option "can_archive_and_mute_new_chats_from_unknown_users" is true.
[in]keep_unmuted_chats_archived_True, if unmuted chats will be kept in the Archive chat list when they get a new message.
[in]keep_chats_from_folders_archived_True, if unmuted chats, that are always included or pinned in a folder, will be kept in the Archive chat list when they get a new message. Ignored if keep_unmuted_chats_archived == true.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::archiveChatListSettings::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::archiveChatListSettings::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.


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