📜  自定义键盘电报机器人 python 代码示例

📅  最后修改于: 2022-03-11 14:45:04.230000             🧑  作者: Mango

代码示例1
...
    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))
...