channels.EditPhoto

class pyrogram.raw.functions.channels.EditPhoto

Change the photo of a channel/supergroup

Details:
  • Layer: 227

  • ID: F12E57C9

Parameters:
Returns:

Updates

TL Schema

channels.editPhoto#f12e57c9
channel:InputChannel
photo:InputChatPhoto

= Updates

Parameter Tree

EditPhoto
├── channel → InputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_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(
    EditPhoto(
        channel=await app.resolve_channel(chat_id),
        photo=InputChatPhotoEmpty(),
    )
)