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.
Constructor schema is available as of layer 177. Switch ยป
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
channel_id | long | Channel/supergroup ID. |
title | flags.0?string | Channel/supergroup title. |
username | flags.1?string | Channel/supergroup username. |
photo | flags.2?Photo | Channel/supergroup photo. |
How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.
Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.
Prompts the user to select and share one or more peers with the bot using messages.sendBotRequestedPeer.