3

I am currently creating a telegram bot using python-telegram-bot. For some questions in the bot I need a number keyboard displayed to the user. I tried:

number_keys = [
               ['7', '8', '9'],
               ['4', '5', '6'],
               ['1', '2', '3'],
                    ['0']
              ]
    
number_keyboard = ReplyKeyboardMarkup(number_keys)

Unfortunately the user can only input one digit, but I want also multidigit numbers to be possible. Do you have any suggestions?

Thank you in advance,

Sören

wowkin2
  • 5,895
  • 5
  • 23
  • 66
Sören Etler
  • 288
  • 1
  • 4
  • 13

1 Answers1

1

Use InlineKeyboardButton instead and update message with values using edit_text or edit_reply_markup to show what was already typed.

wowkin2
  • 5,895
  • 5
  • 23
  • 66