InputPeerPhotoFileLocation

class pyrogram.raw.types.InputPeerPhotoFileLocation

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

Constructor of InputFileLocation.

Details:
  • Layer: 223

  • 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
├── bigtrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── photo_idlong

Example

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