Answer the question
In order to leave comments, you need to log in
What are the ways to get the content of the message by pressing the Inline button associated with this message?
What are the ways to get the content of the message by pressing the Inline button associated with this message?
For example:
desert - an array of data from which this message is filled.
bot.send_animation(message.chat.id, open(desert[2], 'rb'),
caption = desert[0] + " " + str(desert[1]),
reply_markup = makeOrderKeyboard) Displays
a message to the screwed keyboard Inline.
Given keyboard:
makeOrderKeyboard = types.InlineKeyboardMarkup()
makeOrderButton = types.InlineKeyboardButton(text = "Add to cart", callback_data = "makebuy")
makeOrderKeyboard.add(makeOrderButton)
Is there any way to get data from the message itself on clicking the button associated with a given message?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question