所以我有一个名称列表,例如:
XX1
XX2
XX3
XZ1
XZ2
按品牌划分,例如:
Atlas
XX1
XX2
XX3
Tediore
XZ1
XZ2
在此之后,我只想打印用户选择的所请求品牌的特定武器:
elif text.startswith('/weapon'):
keyboard = InlineKeyboardMarkup(inline_keyboard =[[InlineKeyboardButton(text='Atlas', callback_data='Atlas')],
[InlineKeyboardButton(text='Tediore', callback_data='tediore')],
[InlineKeyboardButton(text='DAHL', callback_data='DAHL')],])
bot.sendMessage(msg_data['chat_id'],"Select the brand ?",reply_markup = keyboard )
有任何想法吗?