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

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

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

Public Member Functions

 chatAdministratorRights ()
 
 chatAdministratorRights (bool can_manage_chat_, bool can_change_info_, bool can_post_messages_, bool can_edit_messages_, bool can_delete_messages_, bool can_invite_users_, bool can_restrict_members_, bool can_pin_messages_, bool can_manage_topics_, bool can_promote_members_, bool can_manage_video_chats_, bool can_post_stories_, bool can_edit_stories_, bool can_delete_stories_, bool can_manage_direct_messages_, bool can_manage_tags_, bool is_anonymous_)
 
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_manage_chat_
 True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other privilege; applicable to supergroups and channels only.
 
bool can_change_info_
 True, if the administrator can change the chat title, photo, and other settings.
 
bool can_post_messages_
 True, if the administrator can create channel posts, approve suggested channel posts, or view channel statistics; applicable to channels only.
 
bool can_edit_messages_
 True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
 
bool can_delete_messages_
 True, if the administrator can delete messages of other users.
 
bool can_invite_users_
 True, if the administrator can invite new users to the chat.
 
bool can_restrict_members_
 True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics.
 
bool can_pin_messages_
 True, if the administrator can pin messages; applicable to basic groups and supergroups only.
 
bool can_manage_topics_
 True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only.
 
bool can_promote_members_
 True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them.
 
bool can_manage_video_chats_
 True, if the administrator can manage video chats.
 
bool can_post_stories_
 True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only.
 
bool can_edit_stories_
 True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.
 
bool can_delete_stories_
 True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.
 
bool can_manage_direct_messages_
 True, if the administrator can answer to channel direct messages; applicable to channels only.
 
bool can_manage_tags_
 True, if the administrator can change tags of other users; applicable to basic groups and supergroups only.
 
bool is_anonymous_
 True, if the administrator isn&#x27;t shown in the chat member list and sends messages anonymously; applicable to supergroups only.
 

Static Public Attributes

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

Detailed Description

Describes rights of the administrator.

Definition at line 9668 of file td_api.h.

Constructor & Destructor Documentation

◆ chatAdministratorRights() [1/2]

td::td_api::chatAdministratorRights::chatAdministratorRights ( )

Describes rights of the administrator.

◆ chatAdministratorRights() [2/2]

td::td_api::chatAdministratorRights::chatAdministratorRights ( bool  can_manage_chat_,
bool  can_change_info_,
bool  can_post_messages_,
bool  can_edit_messages_,
bool  can_delete_messages_,
bool  can_invite_users_,
bool  can_restrict_members_,
bool  can_pin_messages_,
bool  can_manage_topics_,
bool  can_promote_members_,
bool  can_manage_video_chats_,
bool  can_post_stories_,
bool  can_edit_stories_,
bool  can_delete_stories_,
bool  can_manage_direct_messages_,
bool  can_manage_tags_,
bool  is_anonymous_ 
)

Describes rights of the administrator.

Parameters
[in]can_manage_chat_True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other privilege; applicable to supergroups and channels only.
[in]can_change_info_True, if the administrator can change the chat title, photo, and other settings.
[in]can_post_messages_True, if the administrator can create channel posts, approve suggested channel posts, or view channel statistics; applicable to channels only.
[in]can_edit_messages_True, if the administrator can edit messages of other users and pin messages; applicable to channels only.
[in]can_delete_messages_True, if the administrator can delete messages of other users.
[in]can_invite_users_True, if the administrator can invite new users to the chat.
[in]can_restrict_members_True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics.
[in]can_pin_messages_True, if the administrator can pin messages; applicable to basic groups and supergroups only.
[in]can_manage_topics_True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only.
[in]can_promote_members_True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them.
[in]can_manage_video_chats_True, if the administrator can manage video chats.
[in]can_post_stories_True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only.
[in]can_edit_stories_True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.
[in]can_delete_stories_True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.
[in]can_manage_direct_messages_True, if the administrator can answer to channel direct messages; applicable to channels only.
[in]can_manage_tags_True, if the administrator can change tags of other users; applicable to basic groups and supergroups only.
[in]is_anonymous_True, if the administrator isn&#x27;t shown in the chat member list and sends messages anonymously; applicable to supergroups only.

Member Function Documentation

◆ store()

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

bool td::td_api::chatAdministratorRights::can_change_info_

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

Definition at line 9681 of file td_api.h.

◆ can_delete_messages_

bool td::td_api::chatAdministratorRights::can_delete_messages_

True, if the administrator can delete messages of other users.

Definition at line 9687 of file td_api.h.

◆ can_delete_stories_

bool td::td_api::chatAdministratorRights::can_delete_stories_

True, if the administrator can delete stories posted by other users; applicable to supergroups and channels only.

Definition at line 9705 of file td_api.h.

◆ can_edit_messages_

bool td::td_api::chatAdministratorRights::can_edit_messages_

True, if the administrator can edit messages of other users and pin messages; applicable to channels only.

Definition at line 9685 of file td_api.h.

◆ can_edit_stories_

bool td::td_api::chatAdministratorRights::can_edit_stories_

True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.

Definition at line 9703 of file td_api.h.

◆ can_invite_users_

bool td::td_api::chatAdministratorRights::can_invite_users_

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

Definition at line 9689 of file td_api.h.

◆ can_manage_chat_

bool td::td_api::chatAdministratorRights::can_manage_chat_

True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report supergroup spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other privilege; applicable to supergroups and channels only.

Definition at line 9679 of file td_api.h.

◆ can_manage_direct_messages_

bool td::td_api::chatAdministratorRights::can_manage_direct_messages_

True, if the administrator can answer to channel direct messages; applicable to channels only.

Definition at line 9707 of file td_api.h.

◆ can_manage_tags_

bool td::td_api::chatAdministratorRights::can_manage_tags_

True, if the administrator can change tags of other users; applicable to basic groups and supergroups only.

Definition at line 9709 of file td_api.h.

◆ can_manage_topics_

bool td::td_api::chatAdministratorRights::can_manage_topics_

True, if the administrator can create, rename, close, reopen, hide, and unhide forum topics; applicable to forum supergroups only.

Definition at line 9695 of file td_api.h.

◆ can_manage_video_chats_

bool td::td_api::chatAdministratorRights::can_manage_video_chats_

True, if the administrator can manage video chats.

Definition at line 9699 of file td_api.h.

◆ can_pin_messages_

bool td::td_api::chatAdministratorRights::can_pin_messages_

True, if the administrator can pin messages; applicable to basic groups and supergroups only.

Definition at line 9693 of file td_api.h.

◆ can_post_messages_

bool td::td_api::chatAdministratorRights::can_post_messages_

True, if the administrator can create channel posts, approve suggested channel posts, or view channel statistics; applicable to channels only.

Definition at line 9683 of file td_api.h.

◆ can_post_stories_

bool td::td_api::chatAdministratorRights::can_post_stories_

True, if the administrator can create new chat stories, or edit and delete posted stories; applicable to supergroups and channels only.

Definition at line 9701 of file td_api.h.

◆ can_promote_members_

bool td::td_api::chatAdministratorRights::can_promote_members_

True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them.

Definition at line 9697 of file td_api.h.

◆ can_restrict_members_

bool td::td_api::chatAdministratorRights::can_restrict_members_

True, if the administrator can restrict, ban, or unban chat members or view supergroup statistics.

Definition at line 9691 of file td_api.h.

◆ ID

const std::int32_t td::td_api::chatAdministratorRights::ID = 1562741834
static

Identifier uniquely determining a type of the object.

Definition at line 9742 of file td_api.h.

◆ is_anonymous_

bool td::td_api::chatAdministratorRights::is_anonymous_

True, if the administrator isn&#x27;t shown in the chat member list and sends messages anonymously; applicable to supergroups only.

Definition at line 9711 of file td_api.h.


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