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

Inherits td::td_api::Object.

Public Member Functions

 chatFolder ()
 
 chatFolder (string const &title_, object_ptr< chatFolderIcon > &&icon_, bool is_shareable_, array< int53 > &&pinned_chat_ids_, array< int53 > &&included_chat_ids_, array< int53 > &&excluded_chat_ids_, bool exclude_muted_, bool exclude_read_, bool exclude_archived_, bool include_contacts_, bool include_non_contacts_, bool include_bots_, bool include_groups_, bool include_channels_)
 
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

string title_
 The title of the folder; 1-12 characters without line feeds.
 
object_ptr< chatFolderIconicon_
 The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder.
 
bool is_shareable_
 True, if at least one link has been created for the folder.
 
array< int53pinned_chat_ids_
 The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
 
array< int53included_chat_ids_
 The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
 
array< int53excluded_chat_ids_
 The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
 
bool exclude_muted_
 True, if muted chats need to be excluded.
 
bool exclude_read_
 True, if read chats need to be excluded.
 
bool exclude_archived_
 True, if archived chats need to be excluded.
 
bool include_contacts_
 True, if contacts need to be included.
 
bool include_non_contacts_
 True, if non-contact users need to be included.
 
bool include_bots_
 True, if bots need to be included.
 
bool include_groups_
 True, if basic groups and supergroups need to be included.
 
bool include_channels_
 True, if channels need to be included.
 

Static Public Attributes

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

Detailed Description

Represents a folder for user chats.

Constructor & Destructor Documentation

◆ chatFolder() [1/2]

td::td_api::chatFolder::chatFolder ( )

Represents a folder for user chats.

◆ chatFolder() [2/2]

td::td_api::chatFolder::chatFolder ( string const &  title_,
object_ptr< chatFolderIcon > &&  icon_,
bool  is_shareable_,
array< int53 > &&  pinned_chat_ids_,
array< int53 > &&  included_chat_ids_,
array< int53 > &&  excluded_chat_ids_,
bool  exclude_muted_,
bool  exclude_read_,
bool  exclude_archived_,
bool  include_contacts_,
bool  include_non_contacts_,
bool  include_bots_,
bool  include_groups_,
bool  include_channels_ 
)

Represents a folder for user chats.

Parameters
[in]title_The title of the folder; 1-12 characters without line feeds.
[in]icon_The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder.
[in]is_shareable_True, if at least one link has been created for the folder.
[in]pinned_chat_ids_The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
[in]included_chat_ids_The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
[in]excluded_chat_ids_The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.
[in]exclude_muted_True, if muted chats need to be excluded.
[in]exclude_read_True, if read chats need to be excluded.
[in]exclude_archived_True, if archived chats need to be excluded.
[in]include_contacts_True, if contacts need to be included.
[in]include_non_contacts_True, if non-contact users need to be included.
[in]include_bots_True, if bots need to be included.
[in]include_groups_True, if basic groups and supergroups need to be included.
[in]include_channels_True, if channels need to be included.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

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