def start(bot, update):
keyboard = [[InlineKeyboardButton("Apples", callback_data='1')],
[InlineKeyboardButton("Oranges", callback_data='2')],
[InlineKeyboardButton("Beans", callback_data='3')],
[InlineKeyboardButton("Rice", callback_data='4')],
[InlineKeyboardButton("Bread", callback_data='5')],
[InlineKeyboardButton("Tomatos", callback_data='6')],
[InlineKeyboardButton("Strawberry", callback_data='7')]
]
reply_markup = InlineKeyboardMarkup(keyboard)
update.message.reply_text('Multiple choice Quizz \nSelect all vegetables:', reply_markup=reply_markup)
使用 InlineKeyboardMarkup,是否有一种方法可以在不隐藏或删除 InlineKeyboardMarkup 的情况下为用户按钮选择提供反馈?
例如,当用户选择 InlineKeyboardButton 时,我可以:
Change the InlineKeyboardButton text
Change the appearance of the InlineKeyboardButton
Edit initial message in update.message.reply_text ( )
我正在尝试查看是否可以提出多项选择问题,如果可以,我需要提供一种方法让用户知道该按钮已被选中或按下。