Avatar ·

Por que o inline keyboard não aparece ao editar uma mensagem?

📁 python, Versões do Python: Python2, Versões do Python

"Eu tenho um código em Python para enviar mensagens e depois editá-las.
Mas ao alterar o texto e os botões em uma mensagem já existente, o texto muda, mas os botões desaparecem.
No entanto, se eu enviar uma nova mensagem com os mesmos botões, tudo funciona perfeitamente.

Este código não funciona

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]}""                chapter = chapter_true                chapter_true =