telegram api constructor · layer 229 · #c9f06e1b
requestPeerTypeChat
Choose a chat or supergroup
definition
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;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
creator | true | Whether to allow only choosing chats or supergroups that were created by the current user. |
bot_participant | true | Whether to allow only choosing chats or supergroups where the bot is a participant. |
has_username | Bool | If specified, allows only choosing channels with or without a username, according to the value of Bool. |
forum | Bool | If specified, allows only choosing chats or supergroups that are or aren't forums, according to the value of Bool. |
user_admin_rights | ChatAdminRights | 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 | If specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights. |
type
RequestPeerType · other constructors: requestPeerTypeUser, requestPeerTypeBroadcast, requestPeerTypeCreateBot
history
present in layers 152–229
| id | layers |
|---|---|
| #c9f06e1b | 152–229 |