I
I
Ivan2021-12-10 08:37:34
Node.js
Ivan, 2021-12-10 08:37:34

Why does the telegram bot give such an error "message is not modified"?

Hello! Launched a telegram bot. Most users are fine.
Periodically I see this error: the message does not change: the specified new content of the message and the markup of the response exactly match the current content and markup of the message response.
TelegramError: ETELEGRAM: 400 Bad Request: message is not modified: specified new message content and reply markup are exactly the same as a current content and reply markup of the message

I cannot reproduce this myself. Everything works fine on localhost.

Could this be because the user has an outdated client?
Or with what it can be connected? Where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2021-12-10
@skapunker

in general, it has now become clear that this event occurs if the user has blocked the bot, and then tried to click on the button that sends the callback. The question is, is it possible to prevent such an error?

A
Alexander Sharomet, 2021-12-10
@sharomet

Without code, you can only google
here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question