Answer the question
In order to leave comments, you need to log in
[[+content_image]]
Why are the buttons not showing up?
numbers, buttons = self.get_numbers()
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text="О тарифе",
callback_data='moreinfo'),
InlineKeyboardButton(text='Хочу тариф дешевле',
callback_data='Хочу дешевле')
]])
button3 = types.InlineKeyboardButton(text='Хочу больше Гб/SMS',
callback_data='Хочу больше ГБ/SMS') # На режим подробнее
# markup.add(button1, button2, button3)
#markup = types.InlineKeyboardMarkup()
#markup.add([types.InlineKeyboardButton(text=name, callback_data=name) for name in buttons])
#text = 'Выбери номер телефона:\n\n' + numbers
self.__bot.edit_message_text(text='df', chat_id=message.chat.id,
message_id=message.message_id,
parse_mode='HTML', reply_markup=markup)
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