mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2021-05-13 03:08:02 +03:00
Support ReplyKeyboardMarkup object.
This commit is contained in:
12
README.md
12
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user