Replies: 2 comments
-
Explanation: Solution: |
Beta Was this translation helpful? Give feedback.
-
It's a normal behavior of deteleteMessage. Use try catch try {
await ctx.deleteMessage()
} catch {} That will prevent the error from appearing when trying to delete the message twice. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I made inline menu with telegram-keyboard library.
I have a button in every step that will back to pervious step.
Its action is when user clicked on it will remove current menu( deleteMessage() method ) and will print pervious menu.
But if user double click on button i will receive this error: 'Bad Request: message to delete not found'.
I also have this problem with the other buttons.
Is there any solution to fix this problem?
Beta Was this translation helpful? Give feedback.
All reactions