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: 227

  • 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_id → long
├── first_name → string (optional)
├── last_name → string (optional)
├── username → string (optional)
└── photo → Photo (optional)
├── PhotoEmpty
│ └── id → long
└── Photo
├── has_stickers → true (optional)
├── id → long
├── access_hash → long
├── file_reference → bytes
├── date → int
├── sizes → Vector < PhotoSize >
│ ├── PhotoSizeEmpty
│ │ └── type → string
│ ├── PhotoSize
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ └── size → int
│ ├── PhotoCachedSize
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ └── bytes → bytes
│ ├── PhotoStrippedSize
│ │ ├── type → string
│ │ └── bytes → bytes
│ ├── PhotoSizeProgressive
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ └── sizes → Vector < int >
│ └── PhotoPathSize
│ ├── type → string
│ └── bytes → bytes
├── video_sizes → Vector < VideoSize > (optional)
│ ├── VideoSize
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ ├── size → int
│ │ └── video_start_ts → double (optional)
│ ├── VideoSizeEmojiMarkup
│ │ ├── emoji_id → long
│ │ └── background_colors → Vector < int >
│ ├── stickerset → InputStickerSet
│ │ ├── InputStickerSetEmpty
│ │ ├── InputStickerSetID
│ │ ├── InputStickerSetShortName
│ │ ├── InputStickerSetDice
│ │ ├── InputStickerSetPremiumGifts
│ │ └── InputStickerSetTonGifts
│ ├── sticker_id → long
│ └── background_colors → Vector < int >
└── dc_id → int

Example

RequestedPeerUser(
    user_id=0,
)