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

Arguments for Api::promoteChatMember. More...

#include <Types.h>

Public Attributes

std::variant< std::int64_t, std::string > chatId { }
 Unique identifier for the target chat or username of the target channel in the format @username.
std::uint64_t userId { }
 Unique identifier of the target user.
bool canChangeInfo = false
 Pass True if the administrator can change chat title, photo and other settings.
bool canPostMessages = false
 Pass True if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only.
bool canEditMessages = false
 Pass True if the administrator can edit messages of other users and can pin messages; for channels only.
bool canDeleteMessages = false
 Pass True if the administrator can delete messages of other users.
bool canInviteUsers = false
 Pass True if the administrator can invite new users to the chat.
bool canPinMessages = false
 Pass True if the administrator can pin messages; for supergroups only.
bool canPromoteMembers = false
 Pass 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 him).
bool isAnonymous = false
 Pass True if the administrator's presence in the chat is hidden.
bool canManageChat = false
 Pass 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 canManageVideoChats = false
 Pass True if the administrator can manage video chats.
bool canRestrictMembers = false
 Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics. For backward compatibility, defaults to True for promotions of channel administrators.
bool canManageTopics = false
 Pass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only.
bool canPostStories = false
 Pass True if the administrator can post stories to the chat.
bool canEditStories = false
 Pass 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 = false
 Pass True if the administrator can delete stories posted by other users.
bool canManageDirectMessages = false
 Pass True if the administrator can manage direct messages within the channel and decline suggested posts; for channels only.
bool canManageTags = false
 Pass True if the administrator can edit the tags of regular members; for groups and supergroups only.
bool canSendWelcomeMessages = false
 Pass True if the administrator can manage chat welcome messages or directly send them in the case of bots.

Detailed Description

Arguments for Api::promoteChatMember.

Definition at line 17950 of file Types.h.

Member Data Documentation

◆ canChangeInfo

bool TgBot::PromoteChatMemberArgs::canChangeInfo = false

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

Definition at line 17966 of file Types.h.

◆ canDeleteMessages

bool TgBot::PromoteChatMemberArgs::canDeleteMessages = false

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

Definition at line 17983 of file Types.h.

◆ canDeleteStories

bool TgBot::PromoteChatMemberArgs::canDeleteStories = false

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

Definition at line 18049 of file Types.h.

◆ canEditMessages

bool TgBot::PromoteChatMemberArgs::canEditMessages = false

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

Definition at line 17978 of file Types.h.

◆ canEditStories

bool TgBot::PromoteChatMemberArgs::canEditStories = false

Pass 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 18044 of file Types.h.

◆ canInviteUsers

bool TgBot::PromoteChatMemberArgs::canInviteUsers = false

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

Definition at line 17988 of file Types.h.

◆ canManageChat

bool TgBot::PromoteChatMemberArgs::canManageChat = false

Pass 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 18014 of file Types.h.

◆ canManageDirectMessages

bool TgBot::PromoteChatMemberArgs::canManageDirectMessages = false

Pass True if the administrator can manage direct messages within the channel and decline suggested posts; for channels only.

Definition at line 18055 of file Types.h.

◆ canManageTags

bool TgBot::PromoteChatMemberArgs::canManageTags = false

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

Definition at line 18061 of file Types.h.

◆ canManageTopics

bool TgBot::PromoteChatMemberArgs::canManageTopics = false

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

Definition at line 18032 of file Types.h.

◆ canManageVideoChats

bool TgBot::PromoteChatMemberArgs::canManageVideoChats = false

Pass True if the administrator can manage video chats.

Definition at line 18019 of file Types.h.

◆ canPinMessages

bool TgBot::PromoteChatMemberArgs::canPinMessages = false

Pass True if the administrator can pin messages; for supergroups only.

Definition at line 17993 of file Types.h.

◆ canPostMessages

bool TgBot::PromoteChatMemberArgs::canPostMessages = false

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

Definition at line 17972 of file Types.h.

◆ canPostStories

bool TgBot::PromoteChatMemberArgs::canPostStories = false

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

Definition at line 18037 of file Types.h.

◆ canPromoteMembers

bool TgBot::PromoteChatMemberArgs::canPromoteMembers = false

Pass 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 him).

Definition at line 18001 of file Types.h.

◆ canRestrictMembers

bool TgBot::PromoteChatMemberArgs::canRestrictMembers = false

Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics. For backward compatibility, defaults to True for promotions of channel administrators.

Definition at line 18026 of file Types.h.

◆ canSendWelcomeMessages

bool TgBot::PromoteChatMemberArgs::canSendWelcomeMessages = false

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

Definition at line 18067 of file Types.h.

◆ chatId

std::variant<std::int64_t, std::string> TgBot::PromoteChatMemberArgs::chatId { }

Unique identifier for the target chat or username of the target channel in the format @username.

Definition at line 17955 of file Types.h.

◆ isAnonymous

bool TgBot::PromoteChatMemberArgs::isAnonymous = false

Pass True if the administrator's presence in the chat is hidden.

Definition at line 18006 of file Types.h.

◆ userId

std::uint64_t TgBot::PromoteChatMemberArgs::userId { }

Unique identifier of the target user.

Definition at line 17960 of file Types.h.


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