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::chatPermissions Class Referencefinal

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

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

Public Member Functions

 chatPermissions ()
 
 chatPermissions (bool can_send_basic_messages_, bool can_send_audios_, bool can_send_documents_, bool can_send_photos_, bool can_send_videos_, bool can_send_video_notes_, bool can_send_voice_notes_, bool can_send_polls_, bool can_send_other_messages_, bool can_add_link_previews_, bool can_edit_tag_, bool can_change_info_, bool can_invite_users_, bool can_pin_messages_, bool can_create_topics_)
 
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 can_send_basic_messages_
 True, if the user can send text messages, contacts, giveaways, giveaway winners, invoices, locations, and venues.
 
bool can_send_audios_
 True, if the user can send music files.
 
bool can_send_documents_
 True, if the user can send documents.
 
bool can_send_photos_
 True, if the user can send photos.
 
bool can_send_videos_
 True, if the user can send videos.
 
bool can_send_video_notes_
 True, if the user can send video notes.
 
bool can_send_voice_notes_
 True, if the user can send voice notes.
 
bool can_send_polls_
 True, if the user can send polls and checklists.
 
bool can_send_other_messages_
 True, if the user can send animations, games, stickers, and dice and use inline bots.
 
bool can_add_link_previews_
 True, if the user may add a link preview to their messages.
 
bool can_edit_tag_
 True, if the user may change the tag of self.
 
bool can_change_info_
 True, if the user can change the chat title, photo, and other settings.
 
bool can_invite_users_
 True, if the user can invite new users to the chat.
 
bool can_pin_messages_
 True, if the user can pin messages.
 
bool can_create_topics_
 True, if the user can create topics.
 

Static Public Attributes

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

Detailed Description

Describes actions that a user is allowed to take in a chat.

Definition at line 14747 of file td_api.h.

Constructor & Destructor Documentation

◆ chatPermissions() [1/2]

td::td_api::chatPermissions::chatPermissions ( )

Describes actions that a user is allowed to take in a chat.

◆ chatPermissions() [2/2]

td::td_api::chatPermissions::chatPermissions ( bool  can_send_basic_messages_,
bool  can_send_audios_,
bool  can_send_documents_,
bool  can_send_photos_,
bool  can_send_videos_,
bool  can_send_video_notes_,
bool  can_send_voice_notes_,
bool  can_send_polls_,
bool  can_send_other_messages_,
bool  can_add_link_previews_,
bool  can_edit_tag_,
bool  can_change_info_,
bool  can_invite_users_,
bool  can_pin_messages_,
bool  can_create_topics_ 
)

Describes actions that a user is allowed to take in a chat.

Parameters
[in]can_send_basic_messages_True, if the user can send text messages, contacts, giveaways, giveaway winners, invoices, locations, and venues.
[in]can_send_audios_True, if the user can send music files.
[in]can_send_documents_True, if the user can send documents.
[in]can_send_photos_True, if the user can send photos.
[in]can_send_videos_True, if the user can send videos.
[in]can_send_video_notes_True, if the user can send video notes.
[in]can_send_voice_notes_True, if the user can send voice notes.
[in]can_send_polls_True, if the user can send polls and checklists.
[in]can_send_other_messages_True, if the user can send animations, games, stickers, and dice and use inline bots.
[in]can_add_link_previews_True, if the user may add a link preview to their messages.
[in]can_edit_tag_True, if the user may change the tag of self.
[in]can_change_info_True, if the user can change the chat title, photo, and other settings.
[in]can_invite_users_True, if the user can invite new users to the chat.
[in]can_pin_messages_True, if the user can pin messages.
[in]can_create_topics_True, if the user can create topics.

Member Function Documentation

◆ store()

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

◆ can_add_link_previews_

bool td::td_api::chatPermissions::can_add_link_previews_

True, if the user may add a link preview to their messages.

Definition at line 14776 of file td_api.h.

◆ can_change_info_

bool td::td_api::chatPermissions::can_change_info_

True, if the user can change the chat title, photo, and other settings.

Definition at line 14780 of file td_api.h.

◆ can_create_topics_

bool td::td_api::chatPermissions::can_create_topics_

True, if the user can create topics.

Definition at line 14786 of file td_api.h.

◆ can_edit_tag_

bool td::td_api::chatPermissions::can_edit_tag_

True, if the user may change the tag of self.

Definition at line 14778 of file td_api.h.

◆ can_invite_users_

bool td::td_api::chatPermissions::can_invite_users_

True, if the user can invite new users to the chat.

Definition at line 14782 of file td_api.h.

◆ can_pin_messages_

bool td::td_api::chatPermissions::can_pin_messages_

True, if the user can pin messages.

Definition at line 14784 of file td_api.h.

◆ can_send_audios_

bool td::td_api::chatPermissions::can_send_audios_

True, if the user can send music files.

Definition at line 14760 of file td_api.h.

◆ can_send_basic_messages_

bool td::td_api::chatPermissions::can_send_basic_messages_

True, if the user can send text messages, contacts, giveaways, giveaway winners, invoices, locations, and venues.

Definition at line 14758 of file td_api.h.

◆ can_send_documents_

bool td::td_api::chatPermissions::can_send_documents_

True, if the user can send documents.

Definition at line 14762 of file td_api.h.

◆ can_send_other_messages_

bool td::td_api::chatPermissions::can_send_other_messages_

True, if the user can send animations, games, stickers, and dice and use inline bots.

Definition at line 14774 of file td_api.h.

◆ can_send_photos_

bool td::td_api::chatPermissions::can_send_photos_

True, if the user can send photos.

Definition at line 14764 of file td_api.h.

◆ can_send_polls_

bool td::td_api::chatPermissions::can_send_polls_

True, if the user can send polls and checklists.

Definition at line 14772 of file td_api.h.

◆ can_send_video_notes_

bool td::td_api::chatPermissions::can_send_video_notes_

True, if the user can send video notes.

Definition at line 14768 of file td_api.h.

◆ can_send_videos_

bool td::td_api::chatPermissions::can_send_videos_

True, if the user can send videos.

Definition at line 14766 of file td_api.h.

◆ can_send_voice_notes_

bool td::td_api::chatPermissions::can_send_voice_notes_

True, if the user can send voice notes.

Definition at line 14770 of file td_api.h.

◆ ID

const std::int32_t td::td_api::chatPermissions::ID = -1533863184
static

Identifier uniquely determining a type of the object.

Definition at line 14815 of file td_api.h.


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