requestPeerTypeChat #

Choose a chat or supergroup

Layer 223

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 #

NameTypeDescription
flags#Flags, see TL conditional fields
creatorflags.0?trueWhether to allow only choosing chats or supergroups that were created by the current user.
bot_participantflags.5?trueWhether to allow only choosing chats or supergroups where the bot is a participant.
has_usernameflags.3?BoolIf specified, allows only choosing channels with or without a username, according to the value of Bool.
forumflags.4?BoolIf specified, allows only choosing chats or supergroups that are or aren't forums, according to the value of Bool.
user_admin_rightsflags.1?ChatAdminRightsIf specified, allows only choosing chats or supergroups where the current user is an admin with at least the specified admin rights.
bot_admin_rightsflags.2?ChatAdminRightsIf specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights.

Type #

RequestPeerType

Bool #

Boolean type.

Forum topics #

Telegram allows creating forums with multiple distinct topics.