Answer the question
In order to leave comments, you need to log in
How can I make an Inline button instead of a ReplyKeyboardMarkup button?
How to make an inline button from ReplyKeyboardMarkup, that is, how to get the user's phone number using inline buttons
keyboard = types.ReplyKeyboardMarkup(row_width=1, resize_keyboard=True)
button_phone = types.KeyboardButton(text="Отправить номер телефона", request_contact=True)
keyboard.add(button_phone)
bot.send_message(call.from_user.id,
"Для получения данных по договору мне необходим Ваш номер телефона привязанный к договору",
reply_markup=keyboard)
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