custom keyboard telegram bot python

37

...
    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))
...

Comments

Submit
0 Comments