Link Search Menu Expand Document

Constructor: requestedPeerUser

Back to constructors index

Info about a user, 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 user, according to the parameters of the requesting inputKeyboardButtonRequestPeer.

Attributes:

NameTypeRequiredDescription
user_idlongYesUser ID.
first_namestringOptionalFirst name.
last_namestringOptionalLast name.
usernamestringOptionalUsername.
photoPhotoOptionalProfile photo.

Type: RequestedPeer

Example:

$requestedPeerUser = ['_' => 'requestedPeerUser', 'user_id' => long, 'first_name' => 'string', 'last_name' => 'string', 'username' => 'string', 'photo' => Photo];