Raw.RequestPeerTypeChat

Raw.RequestPeerTypeChat

Choose a chat or supergroup

requestPeerTypeChat#c9f06e1b flags:# creator:flags.0?true bot_participant:flags.5?true has_username:flags.3?Bool forum:flags.4?Bool user_admin_rights:flags.1?ChatAdminRights bot_admin_rights:flags.2?ChatAdminRights = RequestPeerType;
export namespace Raw {
  export class RequestPeerTypeChat {
    constructor(params: {
      creator?: boolean;
      botParticipant?: boolean;
      hasUsername?: boolean;
      forum?: 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: 0xc9f06e1b

Property

  • creator : boolean or undefined

    Whether to allow only choosing chats or supergroups that were created by the current user.

  • botParticipant : boolean or undefined

    Whether to allow only choosing chats or supergroups where the bot is a participant.

  • hasUsername : boolean or undefined

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

  • forum : boolean or undefined

    If specified, allows only choosing chats or supergroups that are or aren’t forums, according to the value of bool.

  • userAdminRights : Raw.TypeChatAdminRights or undefined

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

  • botAdminRights : Raw.TypeChatAdminRights or undefined

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