аватар on5fydu8@gmail.com · 01.01.1970 03:00

Why is Inline Keyboard not displayed when editing a message?

"I have a code on the python for sending messages and their subsequent editing.
but when the text and buttons change in the existing message, the text is changing, but the buttons disappear. Class = "" Data-Highlighted = ""> if call.data == : python_markup = Telegot.types.inlineboardmarkupu (row_width = 3 ) counter_chapters = 0 for for Chapter in python_chapters_true: counter_chapters += 1 if len (chapter) & gt; = 33 : chapter_true = f "" {chapter [: 33 ]} "" chapter = Chapter_true Chapter_true = f "" {chapter_true} .. "" else : character_true = f "" {Chapter} "" Button = telebot.types.inlineboardbutton (chapter_true, callback_data = chapter) python_markup.add (Button) Bot.edit_Message_text ( "" Choose the chapter: "" , cheat_id = call.message.chat. id , Message_id = Call.message.message_id) Bot.edit_Message_Reply_markup (Chat_id = Call.message.chat. ID , Message_id = call.message. id , reply_markup = python_markup)



and this one works

   if  class == :  python_markupup = Telegot.types.inlineboardmarkupu (row_width =  3 )  counter_chapters =  0    for  for Chapter  in  python_chapters_true:  counter_chapters +=  1    if   len  (chapter) & gt; =  33 :  chapter_true =  f ""  {chapter [:  33 ]}  ""   chapter = Chapter_true Chapter_true =  f ""  {chapter_true}  .. ""    else :  character_true =  f ""  {Chapter}  ""   Button = telebot.types.inlineboardbutton (chapter_true,  callback_data = chapter)  python_markup.add (button)  Bot.Send_Message ( "" Select the chapter: "" , chat_id = call.message.chat.  id ,, Reply_markup = python_markup)    

"

аватар pyayocfn@mail.ru · 01.01.1970 03:00

"For some reason, this game is happening only on the desktop version of the telegram. I also encountered this problem. Previously, everything was fine."

аватар on5fydu8@gmail.com · 01.01.1970 03:00

"For some reason, this game is happening only on the desktop version of the telegram. I also encountered this problem. Previously, everything was fine."

Latest

Similar