RequestedPeerUser

class pyrogram.raw.types.RequestedPeerUser

Info about a user, shared by a user with the currently logged in bot using messages.sendBotRequestedPeer.

Constructor of RequestedPeer.

Details:
  • Layer: 223

  • ID: D62FF46A

Parameters:
  • user_id (int 64-bit) – User ID.

  • first_name (str, optional) – First name.

  • last_name (str, optional) – Last name.

  • username (str, optional) – Username.

  • photo (Photo, optional) – Profile photo.

TL Schema

requestedPeerUser#d62ff46a
flags:#
user_id:long
first_name:flags.0?string
last_name:flags.0?string
username:flags.1?string
photo:flags.2?Photo

= RequestedPeer

Parameter Tree

RequestedPeerUser
├── user_idlong
├── first_namestring (optional)
├── last_namestring (optional)
├── usernamestring (optional)
└── photoPhoto (optional)
├── PhotoEmpty
│ └── idlong
└── Photo
├── has_stickerstrue (optional)
├── idlong
├── access_hashlong
├── file_referencebytes
├── dateint
├── sizesVector < PhotoSize >
│ ├── PhotoSizeEmpty
│ │ └── typestring
│ ├── PhotoSize
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ └── sizeint
│ ├── PhotoCachedSize
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ └── bytesbytes
│ ├── PhotoStrippedSize
│ │ ├── typestring
│ │ └── bytesbytes
│ ├── PhotoSizeProgressive
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ └── sizesVector < int >
│ └── PhotoPathSize
│ ├── typestring
│ └── bytesbytes
├── video_sizesVector < VideoSize > (optional)
│ ├── VideoSize
│ │ ├── typestring
│ │ ├── wint
│ │ ├── hint
│ │ ├── sizeint
│ │ └── video_start_tsdouble (optional)
│ ├── VideoSizeEmojiMarkup
│ │ ├── emoji_idlong
│ │ └── background_colorsVector < int >
│ ├── stickersetInputStickerSet
│ │ ├── InputStickerSetEmpty
│ │ ├── InputStickerSetID
│ │ ├── InputStickerSetShortName
│ │ ├── InputStickerSetDice
│ │ ├── InputStickerSetPremiumGifts
│ │ └── InputStickerSetTonGifts
│ ├── sticker_idlong
│ └── background_colorsVector < int >
└── dc_idint

Example

RequestedPeerUser(
    user_id=0,
)