messages.EditChatPhoto

class pyrogram.raw.functions.messages.EditChatPhoto

Changes chat photo and sends a service message on it

Details:
  • Layer: 227

  • 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_id → long
└── photo → InputChatPhoto
│ ├── file → InputFile (optional)
│ │ ├── InputFile
│ │ ├── InputFileBig
│ │ └── InputFileStoryDocument
│ ├── video → InputFile (optional)
│ │ ├── InputFile
│ │ ├── InputFileBig
│ │ └── InputFileStoryDocument
│ ├── video_start_ts → double (optional)
│ └── video_emoji_markup → 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 >
└── InputChatPhoto
└── id → InputPhoto
├── InputPhotoEmpty
└── InputPhoto
├── id → long
├── access_hash → long
└── file_reference → bytes

Example

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