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

Represents a chat member that is under certain restrictions in the chat. Supergroups only. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<ChatMemberRestricted>

Public Attributes

std::string status { STATUS }
 The member's status in the chat, always “restricted”
std::optional< std::string > tag { }
 Optional. Tag of the member.
std::shared_ptr< Useruser { }
 Information about the user.
bool isMember { }
 True, if the user is a member of the chat at the moment of the request.
bool canSendMessages { }
 True, if the user is allowed to send text messages, rich messages, contacts, giveaways, giveaway winners, invoices, locations and venues.
bool canSendAudios { }
 True, if the user is allowed to send audios.
bool canSendDocuments { }
 True, if the user is allowed to send documents.
bool canSendPhotos { }
 True, if the user is allowed to send photos.
bool canSendVideos { }
 True, if the user is allowed to send videos.
bool canSendVideoNotes { }
 True, if the user is allowed to send video notes.
bool canSendVoiceNotes { }
 True, if the user is allowed to send voice notes.
bool canSendPolls { }
 True, if the user is allowed to send polls and checklists.
bool canSendOtherMessages { }
 True, if the user is allowed to send animations, games, stickers and use inline bots.
bool canAddWebPagePreviews { }
 True, if the user is allowed to add web page previews to their messages.
bool canReactToMessages { }
 True, if the user is allowed to react to messages.
bool canEditTag { }
 True, if the user is allowed to edit their own tag.
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 canPinMessages { }
 True, if the user is allowed to pin messages.
bool canManageTopics { }
 True, if the user is allowed to create forum topics.
std::int32_t untilDate { }
 Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever.

Static Public Attributes

static TGBOT_API const std::string STATUS

Detailed Description

Represents a chat member that is under certain restrictions in the chat. Supergroups only.

Definition at line 2604 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 2605 of file Types.h.

Member Data Documentation

◆ canAddWebPagePreviews

bool TgBot::ChatMemberRestricted::canAddWebPagePreviews { }

True, if the user is allowed to add web page previews to their messages.

Definition at line 2678 of file Types.h.

◆ canChangeInfo

bool TgBot::ChatMemberRestricted::canChangeInfo { }

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

Definition at line 2693 of file Types.h.

◆ canEditTag

bool TgBot::ChatMemberRestricted::canEditTag { }

True, if the user is allowed to edit their own tag.

Definition at line 2688 of file Types.h.

◆ canInviteUsers

bool TgBot::ChatMemberRestricted::canInviteUsers { }

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

Definition at line 2698 of file Types.h.

◆ canManageTopics

bool TgBot::ChatMemberRestricted::canManageTopics { }

True, if the user is allowed to create forum topics.

Definition at line 2708 of file Types.h.

◆ canPinMessages

bool TgBot::ChatMemberRestricted::canPinMessages { }

True, if the user is allowed to pin messages.

Definition at line 2703 of file Types.h.

◆ canReactToMessages

bool TgBot::ChatMemberRestricted::canReactToMessages { }

True, if the user is allowed to react to messages.

Definition at line 2683 of file Types.h.

◆ canSendAudios

bool TgBot::ChatMemberRestricted::canSendAudios { }

True, if the user is allowed to send audios.

Definition at line 2638 of file Types.h.

◆ canSendDocuments

bool TgBot::ChatMemberRestricted::canSendDocuments { }

True, if the user is allowed to send documents.

Definition at line 2643 of file Types.h.

◆ canSendMessages

bool TgBot::ChatMemberRestricted::canSendMessages { }

True, if the user is allowed to send text messages, rich messages, contacts, giveaways, giveaway winners, invoices, locations and venues.

Definition at line 2633 of file Types.h.

◆ canSendOtherMessages

bool TgBot::ChatMemberRestricted::canSendOtherMessages { }

True, if the user is allowed to send animations, games, stickers and use inline bots.

Definition at line 2673 of file Types.h.

◆ canSendPhotos

bool TgBot::ChatMemberRestricted::canSendPhotos { }

True, if the user is allowed to send photos.

Definition at line 2648 of file Types.h.

◆ canSendPolls

bool TgBot::ChatMemberRestricted::canSendPolls { }

True, if the user is allowed to send polls and checklists.

Definition at line 2668 of file Types.h.

◆ canSendVideoNotes

bool TgBot::ChatMemberRestricted::canSendVideoNotes { }

True, if the user is allowed to send video notes.

Definition at line 2658 of file Types.h.

◆ canSendVideos

bool TgBot::ChatMemberRestricted::canSendVideos { }

True, if the user is allowed to send videos.

Definition at line 2653 of file Types.h.

◆ canSendVoiceNotes

bool TgBot::ChatMemberRestricted::canSendVoiceNotes { }

True, if the user is allowed to send voice notes.

Definition at line 2663 of file Types.h.

◆ isMember

bool TgBot::ChatMemberRestricted::isMember { }

True, if the user is a member of the chat at the moment of the request.

Definition at line 2627 of file Types.h.

◆ STATUS

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

Definition at line 2607 of file Types.h.

◆ status

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

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

Definition at line 2612 of file Types.h.

◆ tag

std::optional<std::string> TgBot::ChatMemberRestricted::tag { }

Optional. Tag of the member.

Definition at line 2617 of file Types.h.

◆ untilDate

std::int32_t TgBot::ChatMemberRestricted::untilDate { }

Date when restrictions will be lifted for this user; Unix time. If 0, then the user is restricted forever.

Definition at line 2714 of file Types.h.

◆ user

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

Information about the user.

Definition at line 2622 of file Types.h.


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