Represents a chat member that is under certain restrictions in the chat. Supergroups only.
More...
|
| 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< User > | user { } |
| | 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.
|
Represents a chat member that is under certain restrictions in the chat. Supergroups only.
Definition at line 2604 of file Types.h.
| 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.