Skip to main content

requestedPeerUser

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.

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

Implements RequestedPeer.

Fields​

NameTypeRequiredDescription
UserIDint64yesUser ID.
FirstNamestring—First name.
LastNamestring—Last name.
Usernamestring—Username.
PhotoPhotoClass—Profile photo.

References​