简体   繁体   中英

How to edit message in Telegram using Telethon?

I've already learnt how to edit the message text form this https://telethonn.readthedocs.io/en/latest/telethon.html#telethon.telegram_client.TelegramClient.edit_message . But how to change photos or some other things?

You're checking out an unofficial version of the documentation which is very out of date. The official version is TelegramClient.edit_message , which showcases the file parameter:

await client.edit_message(chat, msg_id, file='example.jpg')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM