channels.EditPhoto
- class pyrogram.raw.functions.channels.EditPhoto
Change the photo of a channel/supergroup
- Details:
Layer:
223ID:
F12E57C9
- Parameters:
channel (
InputChannel) – Channel/supergroup whose photo should be editedphoto (
InputChatPhoto) – New photo
- Returns:
TL Schema
channels.editPhoto#f12e57c9
channel:InputChannel
photo:InputChatPhoto
= Updates
Parameter Tree
EditPhoto
├── channel →
InputChannel│ ├──
InputChannelEmpty│ ├──
InputChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ └──
InputChannelFromMessage│ ├── 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 >│ └──
VideoSizeStickerMarkup│ ├── stickerset →
InputStickerSet│ │ ├──
InputStickerSetEmpty│ │ ├──
InputStickerSetID│ │ ├──
InputStickerSetShortName│ │ ├──
InputStickerSetAnimatedEmoji│ │ ├──
InputStickerSetDice│ │ ├──
InputStickerSetPremiumGifts│ │ └──
InputStickerSetTonGifts│ ├── sticker_id →
long│ └── background_colors →
Vector < int >└──
InputChatPhoto└── id →
InputPhotoExample
await app.invoke(
EditPhoto(
channel=await app.resolve_channel(chat_id),
photo=InputChatPhotoEmpty(),
)
)