Avatar ·

Why is inline keyboard not displayed when editing a message?

📁 Advanced Python Topics, python2, python3

"I have Python code for sending messages and then editing them.
But when changing the text and buttons in an existing message, the text changes but the buttons disappear.
At the same time, if I send a new message with the same buttons, everything works perfectly.

This code does not work

if call.data == ""python"":        python_markup = telebot.types.InlineKeyboardMarkup(row_width=3)        counter_chapters = 0        for chapter in python_chapters_true:            counter_chapters += 1            if len(chapter) >= 

                    
                
Avatar ·

"For some reason, this nonsense only happens on the desktop version of Telegram. I also encountered this problem. Previously, everything was fine."

Avatar ·

"For some reason, this nonsense only happens on the desktop version of Telegram. I also encountered this problem. Everything was fine before."

Log in to leave an answer

Blogs