D
D
Dexter_Smith2020-11-15 14:09:13
Telegram
Dexter_Smith, 2020-11-15 14:09:13

How to make a telegram bot delete a message after sending the next one?

Can you tell me if it is possible to make the bot not send a new message after pressing the button, but somehow delete the previous one or replace it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-11-15
@Dexter_Smith

For editing, use the edit function
https://core.telegram.org/bots/api#editmessagetext
To delete, oddly enough, the delete function
https://core.telegram.org/bots/api#deletemessage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question