Telegram Bot. How to remove Inline messages?

0 like 0 dislike
11 views
Hello, madly need your help.
5c538a61223d9711440627.png
Inline bot sends a message to any from the chat rooms.
5c538a6be7a0a402047595.png
By clicking on kapahu, I have to change/remove this message. All anything, but can't catch chat.id and message id. If the chat bot is obvious, while in Inline mode do not work.
Sending a message
hint = "Test" try: r = types.InlineQueryResultArticle( id='1', title="Test" description=hint, input_message_content=types.InputTextMessageContent( message_text="Another test"), reply_markup=main_menu(), ) print(query) bot.answer_inline_query(query.id [r]) except Exception as e: print(e)

The Assembly of the keyboard
user_markup = telebot.types.InlineKeyboardMarkup() dept = json.dumps({"command": 1, "type": "dept"}) dept_button = telebot.types.InlineKeyboardButton("Test", callback_data=dept) user_markup.add(dept_button) return user_markup

The result by clicking on copahu
5c538b70be555607766740.pngHow all the same to refer to that message?
asked by | 11 views

1 Answer

0 like 0 dislike
answered by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,581 questions
257,150 answers
0 comments
477 users