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
| Name | Type | Required | Description |
|---|---|---|---|
UserID | int64 | yes | User ID. |
FirstName | string | — | First name. |
LastName | string | — | Last name. |
Username | string | — | Username. |
Photo | PhotoClass | — | Profile photo. |
References
- Official documentation
- Generated Go reference
- TL definition:
requestedPeerUser#d62ff46a