RequestPeerTypeChat
- class pyrogram.raw.types.RequestPeerTypeChat
Choose a chat or supergroup
Constructor of
RequestPeerType.- Details:
Layer:
223ID:
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
true (optional)true (optional)Bool (optional)Bool (optional)ChatAdminRights (optional)ChatAdminRightstrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)ChatAdminRights (optional)ChatAdminRightstrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)Example
RequestPeerTypeChat(
)