Avatar ·

为什么编辑消息时内联键盘不显示?

📁 python, Python2 - 关于Python 2.x的遗留问题, Python 版本讨论:Python 3.x 最新动态

我有一个用Python编写的代码,用于发送消息并随后编辑它们。
但是,当修改现有消息中的文本和按钮时,文本会更改,但按钮会消失。
同时,如果我发送一条带有相同按钮的新消息,一切都会正常工作。

这段代码不起作用

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 =