X
X
xxxfdd2020-11-24 21:34:48
Python
xxxfdd, 2020-11-24 21:34:48

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

1 answer(s)
S
soremix, 2020-11-24
@xxxfdd

No way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question