ChatBannedRights#
- class pyrogram.raw.types.ChatBannedRights#
Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X.
Constructor of
ChatBannedRights
.- Details:
Layer:
158
ID:
9F120418
- Parameters:
until_date (
int
32-bit
) – Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days).view_messages (
bool
, optional) – If set, does not allow a user to view messages in a supergroup/channel/chat.send_messages (
bool
, optional) – If set, does not allow a user to send messages in a supergroup/chat.send_media (
bool
, optional) – If set, does not allow a user to send any media in a supergroup/chat.send_stickers (
bool
, optional) – If set, does not allow a user to send stickers in a supergroup/chat.send_gifs (
bool
, optional) – If set, does not allow a user to send gifs in a supergroup/chat.send_games (
bool
, optional) – If set, does not allow a user to send games in a supergroup/chat.send_inline (
bool
, optional) – If set, does not allow a user to use inline bots in a supergroup/chat.embed_links (
bool
, optional) – If set, does not allow a user to embed links in the messages of a supergroup/chat.send_polls (
bool
, optional) – If set, does not allow a user to send polls in a supergroup/chat.change_info (
bool
, optional) – If set, does not allow any user to change the description of a supergroup/chat.invite_users (
bool
, optional) – If set, does not allow any user to invite users in a supergroup/chat.pin_messages (
bool
, optional) – If set, does not allow any user to pin messages in a supergroup/chat.manage_topics (
bool
, optional) – If set, does not allow any user to create, delete or modify forum topics.send_photos (
bool
, optional) – If set, does not allow a user to send photos in a supergroup/chat.send_videos (
bool
, optional) – If set, does not allow a user to send videos in a supergroup/chat.send_roundvideos (
bool
, optional) – If set, does not allow a user to send round videos in a supergroup/chat.send_audios (
bool
, optional) – If set, does not allow a user to send audio files in a supergroup/chat.send_voices (
bool
, optional) – If set, does not allow a user to send voice messages in a supergroup/chat.send_docs (
bool
, optional) – If set, does not allow a user to send documents in a supergroup/chat.send_plain (
bool
, optional) – If set, does not allow a user to send text messages in a supergroup/chat.