pyTelegramBotAPI
pyTelegramBotAPI copied to clipboard
ReplyKeyboardMarkup with set
Hi! I've got some set, that I want add to keyboard markup.
some_set = {'2', '3', '0.2', '1'}
markup = types.ReplyKeyboardMarkup(one_time_keyboard=True)
markup.add(some_set)
msg = bot.send_message(message.from_user.id, "test", reply_markup=markup)
So, I was trying to do that in stupid way: new_set = some_set[1:-1] So, its turned to:screenshot How to do that?
Was searching it for hours, wrote to stack and etc.