requestedPeerChannel #

Info about a channel/supergroup, shared by a user with the currently logged in bot using messages.sendBotRequestedPeer.

All fields except the ID are optional, and will be populated if present on the chosen channel/supergroup, according to the parameters of the requesting inputKeyboardButtonRequestPeer.

Layer 223

requestedPeerChannel#8ba403e4 flags:# channel_id:long title:flags.0?string username:flags.1?string photo:flags.2?Photo = RequestedPeer;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
channel_idlongChannel/supergroup ID.
titleflags.0?stringChannel/supergroup title.
usernameflags.1?stringChannel/supergroup username.
photoflags.2?PhotoChannel/supergroup photo.

Type #

RequestedPeer

Channels, supergroups, gigagroups and basic groups #

How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.

messages.sendBotRequestedPeer #

Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.

inputKeyboardButtonRequestPeer #

Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer.

Use this constructor to send a keyboardButtonRequestPeer button in a reply keyboard in a private chat.

See peer requests for the full flow.