RequestPeerTypeChat

class pyrogram.raw.types.RequestPeerTypeChat

Choose a chat or supergroup

Constructor of RequestPeerType.

Details:
  • Layer: 227

  • ID: C9F06E1B

Parameters:
  • creator (bool, optional) – Whether to allow only choosing chats or supergroups that were created by the current user.

  • bot_participant (bool, optional) – Whether to allow only choosing chats or supergroups where the bot is a participant.

  • has_username (bool, optional) – If specified, allows only choosing channels with or without a username, according to the value of Bool.

  • forum (bool, optional) – If specified, allows only choosing chats or supergroups that are or aren’t forums, according to the value of Bool.

  • user_admin_rights (ChatAdminRights, optional) – If specified, allows only choosing chats or supergroups where the current user is an admin with at least the specified admin rights.

  • bot_admin_rights (ChatAdminRights, optional) – If specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights.

TL Schema

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

Parameter Tree

RequestPeerTypeChat
├── creator → true (optional)
├── bot_participant → true (optional)
├── has_username → Bool (optional)
├── forum → Bool (optional)
├── user_admin_rights → ChatAdminRights (optional)
│ └── ChatAdminRights
│ ├── change_info → true (optional)
│ ├── post_messages → true (optional)
│ ├── edit_messages → true (optional)
│ ├── delete_messages → true (optional)
│ ├── ban_users → true (optional)
│ ├── invite_users → true (optional)
│ ├── pin_messages → true (optional)
│ ├── add_admins → true (optional)
│ ├── anonymous → true (optional)
│ ├── manage_call → true (optional)
│ ├── other → true (optional)
│ ├── manage_topics → true (optional)
│ ├── post_stories → true (optional)
│ ├── edit_stories → true (optional)
│ ├── delete_stories → true (optional)
│ ├── manage_direct_messages → true (optional)
│ └── manage_ranks → true (optional)
└── bot_admin_rights → ChatAdminRights (optional)
└── ChatAdminRights
├── change_info → true (optional)
├── post_messages → true (optional)
├── edit_messages → true (optional)
├── delete_messages → true (optional)
├── ban_users → true (optional)
├── invite_users → true (optional)
├── pin_messages → true (optional)
├── add_admins → true (optional)
├── anonymous → true (optional)
├── manage_call → true (optional)
├── other → true (optional)
├── manage_topics → true (optional)
├── post_stories → true (optional)
├── edit_stories → true (optional)
├── delete_stories → true (optional)
├── manage_direct_messages → true (optional)
└── manage_ranks → true (optional)

Example

RequestPeerTypeChat(
)