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: 223

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

  • edit_rank (bool, optional) – N/A

TL Schema

chatBannedRights#9f120418
flags:#
view_messages:flags.0?true
send_messages:flags.1?true
send_media:flags.2?true
send_stickers:flags.3?true
send_gifs:flags.4?true
send_games:flags.5?true
send_inline:flags.6?true
embed_links:flags.7?true
send_polls:flags.8?true
change_info:flags.10?true
invite_users:flags.15?true
pin_messages:flags.17?true
manage_topics:flags.18?true
send_photos:flags.19?true
send_videos:flags.20?true
send_roundvideos:flags.21?true
send_audios:flags.22?true
send_voices:flags.23?true
send_docs:flags.24?true
send_plain:flags.25?true
edit_rank:flags.26?true
until_date:int

= ChatBannedRights

Parameter Tree

ChatBannedRights
├── view_messagestrue (optional)
├── send_messagestrue (optional)
├── send_mediatrue (optional)
├── send_stickerstrue (optional)
├── send_gifstrue (optional)
├── send_gamestrue (optional)
├── send_inlinetrue (optional)
├── embed_linkstrue (optional)
├── send_pollstrue (optional)
├── change_infotrue (optional)
├── invite_userstrue (optional)
├── pin_messagestrue (optional)
├── manage_topicstrue (optional)
├── send_photostrue (optional)
├── send_videostrue (optional)
├── send_roundvideostrue (optional)
├── send_audiostrue (optional)
├── send_voicestrue (optional)
├── send_docstrue (optional)
├── send_plaintrue (optional)
├── edit_ranktrue (optional)
└── until_dateint

Example

ChatBannedRights(
    until_date=0,
)