messages.EditChatPhoto

class pyrogram.raw.functions.messages.EditChatPhoto

Changes chat photo and sends a service message on it

Details:
  • Layer: 223

  • ID: 35DDD674

Parameters:
  • chat_id (int 64-bit) – Chat ID

  • photo (InputChatPhoto) – Photo to be set

Returns:

Updates

TL Schema

messages.editChatPhoto#35ddd674
chat_id:long
photo:InputChatPhoto

= Updates

Parameter Tree

EditChatPhoto
├── chat_idlong
└── photoInputChatPhoto
│ ├── fileInputFile (optional)
│ │ ├── InputFile
│ │ ├── InputFileBig
│ │ └── InputFileStoryDocument
│ ├── videoInputFile (optional)
│ │ ├── InputFile
│ │ ├── InputFileBig
│ │ └── InputFileStoryDocument
│ ├── video_start_tsdouble (optional)
│ └── video_emoji_markupVideoSize (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 >
└── InputChatPhoto
└── idInputPhoto
├── InputPhotoEmpty
└── InputPhoto
├── idlong
├── access_hashlong
└── file_referencebytes

Example

await app.invoke(
    EditChatPhoto(
        chat_id=0,
        photo=InputChatPhotoEmpty(),
    )
)