channels.EditPhoto

class pyrogram.raw.functions.channels.EditPhoto

Change the photo of a channel/supergroup

Details:
  • Layer: 223

  • ID: F12E57C9

Parameters:
Returns:

Updates

TL Schema

channels.editPhoto#f12e57c9
channel:InputChannel
photo:InputChatPhoto

= Updates

Parameter Tree

EditPhoto
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_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(
    EditPhoto(
        channel=await app.resolve_channel(chat_id),
        photo=InputChatPhotoEmpty(),
    )
)