Skip to main content

requestPeerTypeChat

Choose a chat or supergroup

type tg.RequestPeerTypeChat struct { /* ... */ }

Implements RequestPeerType.

Fields​

NameTypeRequiredDescription
Creatorbool—Whether to allow only choosing chats or supergroups that were created by the current user.
BotParticipantbool—Whether to allow only choosing chats or supergroups where the bot is a participant.
HasUsernamebool—If specified, allows only choosing channels with or without a username, according to the value of Bool.
Forumbool—If specified, allows only choosing chats or supergroups that are or aren't forums, according to the value of Bool.
UserAdminRightsChatAdminRights—If specified, allows only choosing chats or supergroups where the current user is an admin with at least the specified admin rights.
BotAdminRightsChatAdminRights—If specified, allows only choosing chats or supergroups where the bot is an admin with at least the specified admin rights.

References​