InputPeerPhotoFileLocation

class pyrogram.raw.types.InputPeerPhotoFileLocation

Location of profile photo of channel/group/supergroup/user

Constructor of InputFileLocation.

Details:
  • Layer: 227

  • ID: 37257E99

Parameters:
  • peer (InputPeer) – The peer whose profile picture should be downloaded

  • photo_id (int 64-bit) – Photo ID

  • big (bool, optional) – Whether to download the high-quality version of the picture

TL Schema

inputPeerPhotoFileLocation#37257e99
flags:#
big:flags.0?true
peer:InputPeer
photo_id:long

= InputFileLocation

Parameter Tree

InputPeerPhotoFileLocation
├── big → true (optional)
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── photo_id → long

Example

InputPeerPhotoFileLocation(
    peer=await app.resolve_peer(chat_id),
    photo_id=0,
)