H
H
hey_umbrella2021-05-16 23:59:37
Python
hey_umbrella, 2021-05-16 23:59:37

How to replace message in telegram bot api?

I need to replace the message 60a187b057e75488512931.png
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergo Zar, 2021-05-17
@Sergomen

from this tutorial https://mastergroosha.github.io/telegram-tutorial/... it is clear that you need to edit the message by its id and not by the chat id

bot.edit_message_text(chat_id=id чата, message_id=id сообщения, text="Твой текст")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question