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 type of ChatBannedRights.

Details
  • Layer: 126

  • ID: 0x9f120418

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 stickers 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.