Link Search Menu Expand Document

Constructor: requestedPeerChannel

Back to constructors index

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.

Attributes:

NameTypeRequiredDescription
channel_idlongYesChannel/supergroup ID.
titlestringOptionalChannel/supergroup title.
usernamestringOptionalChannel/supergroup username.
photoPhotoOptionalChannel/supergroup photo.

Type: RequestedPeer

Example:

$requestedPeerChannel = ['_' => 'requestedPeerChannel', 'channel_id' => long, 'title' => 'string', 'username' => 'string', 'photo' => Photo];