Avatar ·

Why is Inline Keyboard not displayed when editing a message?

📁 Advanced Python Topics, python2, python3

I have a code in Python for sending messages and their subsequent editing.
But when the text and buttons change in the existing message, the text changes, but the buttons disappear. 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) >= 33: chapter_true = f"{chapter[:33]}"