Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

custom keyboard telegram bot python

...
    markup = ReplyKeyboardMarkup(keyboard=[['Time', KeyboardButton(text='Logo')],["File", "Audio"]])
    if command == '/start':
        telegram_bot.sendMessage (chat_id, str("Hi! Which one do you want? choose from the below keyboard buttons."), reply_markup=markup)
        telegram_bot.sendMessage(chat_id, str(now.hour)+str(":")+str(now.minute))
...
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #custom #keyboard #telegram #bot #python
ADD COMMENT
Topic
Name
9+2 =