Support ReplyKeyboardMarkup object.

This commit is contained in:
eternnoir
2015-06-30 13:20:44 +08:00
parent 9e27680266
commit 77580e6784
3 changed files with 23 additions and 5 deletions

View File

@@ -111,6 +111,18 @@ tb.send_location(chat_id, lat, lon)
# find_location.
tb.send_chat_action(chat_id, action_string)
# ReplyKeyboardMarkup.
# Use ReplyKeyboardMarkup class.
# Thanks pevdh.
markup = types.ReplyKeyboardMarkup()
markup.add('a', 'v', 'd')
tb.send_message(chat_id, message, None, None, markup)
# or use row method
markup = types.ReplyKeyboardMarkup()
markup.row('a', 'v')
markup.row('c', 'd', 'e')
tb.send_message(chat_id, message, None, None, markup)
```
## Message notifier