Raw.ChatBannedRights

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

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 until_date:int = ChatBannedRights;
export namespace Raw {
  export class ChatBannedRights {
    constructor(params: {
      viewMessages?: boolean;
      sendMessages?: boolean;
      sendMedia?: boolean;
      sendStickers?: boolean;
      sendGifs?: boolean;
      sendGames?: boolean;
      sendInline?: boolean;
      embedLinks?: boolean;
      sendPolls?: boolean;
      changeInfo?: boolean;
      inviteUsers?: boolean;
      pinMessages?: boolean;
      manageTopics?: boolean;
      sendPhotos?: boolean;
      sendVideos?: boolean;
      sendRoundvideos?: boolean;
      sendAudios?: boolean;
      sendVoices?: boolean;
      sendDocs?: boolean;
      sendPlain?: boolean;
      untilDate: number;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0x9f120418

Property

  • viewMessages : boolean or undefined

    If set, does not allow a user to view messages in a supergroup/channel/chat

  • sendMessages : boolean or undefined

    If set, does not allow a user to send messages in a supergroup/chat

  • sendMedia : boolean or undefined

    If set, does not allow a user to send any media in a supergroup/chat

  • sendStickers : boolean or undefined

    If set, does not allow a user to send stickers in a supergroup/chat

  • sendGifs : boolean or undefined

    If set, does not allow a user to send gifs in a supergroup/chat

  • sendGames : boolean or undefined

    If set, does not allow a user to send games in a supergroup/chat

  • sendInline : boolean or undefined

    If set, does not allow a user to use inline bots in a supergroup/chat.

  • embedLinks : boolean or undefined

    If set, does not allow a user to embed links in the messages of a supergroup/chat

  • sendPolls : boolean or undefined

    If set, does not allow a user to send polls in a supergroup/chat

  • changeInfo : boolean or undefined

    If set, does not allow any user to change the description of a supergroup/chat

  • inviteUsers : boolean or undefined

    If set, does not allow any user to invite users in a supergroup/chat

  • pinMessages : boolean or undefined

    If set, does not allow any user to pin messages in a supergroup/chat

  • manageTopics : boolean or undefined

    If set, does not allow any user to create, delete or modify forum topics.

  • sendPhotos : boolean or undefined

    If set, does not allow a user to send photos in a supergroup/chat.

  • sendVideos : boolean or undefined

    If set, does not allow a user to send videos in a supergroup/chat.

  • sendRoundvideos : boolean or undefined

    If set, does not allow a user to send round videos in a supergroup/chat.

  • sendAudios : boolean or undefined

    If set, does not allow a user to send audio files in a supergroup/chat.

  • sendVoices : boolean or undefined

    If set, does not allow a user to send voice messages in a supergroup/chat.

  • sendDocs : boolean or undefined

    If set, does not allow a user to send documents in a supergroup/chat.

  • sendPlain : boolean or undefined

    If set, does not allow a user to send text messages in a supergroup/chat.

  • untilDate : number

    Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days).