tgbot-cpp
Loading...
Searching...
No Matches
TgBot::ChatMemberAdministrator Struct Reference

Represents a chat member that has some additional privileges. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<ChatMemberAdministrator>

Public Attributes

std::string status { STATUS }
 The member's status in the chat, always “administrator”
std::shared_ptr< User > user { }
 Information about the user.
bool canBeEdited { }
 True, if the bot is allowed to edit administrator privileges of that user.
bool isAnonymous { }
 True, if the user's presence in the chat is hidden.
bool canManageChat { }
 True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege.
bool canDeleteMessages { }
 True, if the administrator can delete messages of other users.
bool canManageVideoChats { }
 True, if the administrator can manage video chats.
bool canRestrictMembers { }
 True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics.
bool canPromoteMembers { }
 True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user).
bool canChangeInfo { }
 True, if the user is allowed to change the chat title, photo and other settings.
bool canInviteUsers { }
 True, if the user is allowed to invite new users to the chat.
bool canPostStories { }
 True, if the administrator can post stories to the chat.
bool canEditStories { }
 True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive.
bool canDeleteStories { }
 True, if the administrator can delete stories posted by other users.
std::optional< bool > canPostMessages { }
 Optional. True, if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only.
std::optional< bool > canEditMessages { }
 Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only.
std::optional< bool > canPinMessages { }
 Optional. True, if the user is allowed to pin messages; for groups and supergroups only.
std::optional< bool > canManageTopics { }
 Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only.
std::optional< bool > canManageDirectMessages { }
 Optional. True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only.
std::optional< bool > canManageTags { }
 Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups only.
bool canSendWelcomeMessages { }
 True, if the administrator can manage chat welcome messages or directly send them in the case of bots.
std::optional< std::string > customTitle { }
 Optional. Custom title for this user.

Static Public Attributes

static TGBOT_API const std::string STATUS

Detailed Description

Represents a chat member that has some additional privileges.

Definition at line 2184 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 2185 of file Types.h.

Member Data Documentation

◆ canBeEdited

bool TgBot::ChatMemberAdministrator::canBeEdited { }

True, if the bot is allowed to edit administrator privileges of that user.

Definition at line 2200 of file Types.h.

◆ canChangeInfo

bool TgBot::ChatMemberAdministrator::canChangeInfo { }

True, if the user is allowed to change the chat title, photo and other settings.

Definition at line 2234 of file Types.h.

◆ canDeleteMessages

bool TgBot::ChatMemberAdministrator::canDeleteMessages { }

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

Definition at line 2215 of file Types.h.

◆ canDeleteStories

bool TgBot::ChatMemberAdministrator::canDeleteStories { }

True, if the administrator can delete stories posted by other users.

Definition at line 2251 of file Types.h.

◆ canEditMessages

std::optional<bool> TgBot::ChatMemberAdministrator::canEditMessages { }

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

Definition at line 2261 of file Types.h.

◆ canEditStories

bool TgBot::ChatMemberAdministrator::canEditStories { }

True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive.

Definition at line 2247 of file Types.h.

◆ canInviteUsers

bool TgBot::ChatMemberAdministrator::canInviteUsers { }

True, if the user is allowed to invite new users to the chat.

Definition at line 2238 of file Types.h.

◆ canManageChat

bool TgBot::ChatMemberAdministrator::canManageChat { }

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

Definition at line 2211 of file Types.h.

◆ canManageDirectMessages

std::optional<bool> TgBot::ChatMemberAdministrator::canManageDirectMessages { }

Optional. True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only.

Definition at line 2275 of file Types.h.

◆ canManageTags

std::optional<bool> TgBot::ChatMemberAdministrator::canManageTags { }

Optional. True, if the administrator can edit the tags of regular members; for groups and supergroups only.

Definition at line 2280 of file Types.h.

◆ canManageTopics

std::optional<bool> TgBot::ChatMemberAdministrator::canManageTopics { }

Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only.

Definition at line 2270 of file Types.h.

◆ canManageVideoChats

bool TgBot::ChatMemberAdministrator::canManageVideoChats { }

True, if the administrator can manage video chats.

Definition at line 2219 of file Types.h.

◆ canPinMessages

std::optional<bool> TgBot::ChatMemberAdministrator::canPinMessages { }

Optional. True, if the user is allowed to pin messages; for groups and supergroups only.

Definition at line 2265 of file Types.h.

◆ canPostMessages

std::optional<bool> TgBot::ChatMemberAdministrator::canPostMessages { }

Optional. True, if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only.

Definition at line 2256 of file Types.h.

◆ canPostStories

bool TgBot::ChatMemberAdministrator::canPostStories { }

True, if the administrator can post stories to the chat.

Definition at line 2242 of file Types.h.

◆ canPromoteMembers

bool TgBot::ChatMemberAdministrator::canPromoteMembers { }

True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user).

Definition at line 2230 of file Types.h.

◆ canRestrictMembers

bool TgBot::ChatMemberAdministrator::canRestrictMembers { }

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

Definition at line 2224 of file Types.h.

◆ canSendWelcomeMessages

bool TgBot::ChatMemberAdministrator::canSendWelcomeMessages { }

True, if the administrator can manage chat welcome messages or directly send them in the case of bots.

Definition at line 2285 of file Types.h.

◆ customTitle

std::optional<std::string> TgBot::ChatMemberAdministrator::customTitle { }

Optional. Custom title for this user.

Definition at line 2289 of file Types.h.

◆ isAnonymous

bool TgBot::ChatMemberAdministrator::isAnonymous { }

True, if the user's presence in the chat is hidden.

Definition at line 2204 of file Types.h.

◆ STATUS

TGBOT_API const std::string TgBot::ChatMemberAdministrator::STATUS
static

Definition at line 2187 of file Types.h.

◆ status

std::string TgBot::ChatMemberAdministrator::status { STATUS }

The member's status in the chat, always “administrator”

Definition at line 2192 of file Types.h.

◆ user

std::shared_ptr<User> TgBot::ChatMemberAdministrator::user { }

Information about the user.

Definition at line 2196 of file Types.h.


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