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

Inherits td::td_api::Object.

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 is_anonymous_)
 
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 can_manage_chat_
 True, if the administrator can get chat event log, get chat boosts in channels, get channel members, report supergroup spam messages, see anonymous administrators in supergroups and ignore slow mode. 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 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; always true for channels.
 
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 manage 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 channel stories, or edit and delete posted stories; applicable to channels only.
 
bool can_edit_stories_
 True, if the administrator can edit stories posted by other users, pin stories and access story archive; applicable to channels only.
 
bool can_delete_stories_
 True, if the administrator can delete stories posted by other users; applicable to channels only.
 
bool is_anonymous_
 True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.
 

Static Public Attributes

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

Detailed Description

Describes rights of the administrator.

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  is_anonymous_ 
)

Describes rights of the administrator.

Parameters
[in]can_manage_chat_True, if the administrator can get chat event log, get chat boosts in channels, get channel members, report supergroup spam messages, see anonymous administrators in supergroups and ignore slow mode. 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 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; always true for channels.
[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 manage 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 channel stories, or edit and delete posted stories; applicable to channels only.
[in]can_edit_stories_True, if the administrator can edit stories posted by other users, pin stories and access story archive; applicable to channels only.
[in]can_delete_stories_True, if the administrator can delete stories posted by other users; applicable to channels only.
[in]is_anonymous_True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only.

Member Function Documentation

◆ get_id()

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

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ 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.


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