Raw.RequestPeerTypeBroadcast

Raw.RequestPeerTypeBroadcast

Choose a channel

requestPeerTypeBroadcast#339bef6c flags:# creator:flags.0?true has_username:flags.3?Bool user_admin_rights:flags.1?ChatAdminRights bot_admin_rights:flags.2?ChatAdminRights = RequestPeerType;
export namespace Raw {
  export class RequestPeerTypeBroadcast {
    constructor(params: {
      creator?: boolean;
      hasUsername?: boolean;
      userAdminRights?: Raw.TypeChatAdminRights;
      botAdminRights?: Raw.TypeChatAdminRights;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0x339bef6c

Property

  • creator : boolean or undefined

    Whether to allow only choosing channels that were created by the current user.

  • hasUsername : boolean or undefined

    If specified, allows only choosing channels with or without a username, according to the value of bool.

  • userAdminRights : Raw.TypeChatAdminRights or undefined

    If specified, allows only choosing channels where the current user is an admin with at least the specified admin rights.

  • botAdminRights : Raw.TypeChatAdminRights or undefined

    If specified, allows only choosing channels where the bot is an admin with at least the specified admin rights.