Add chosen_inline_handler doc.

This commit is contained in:
eternnoir 2016-01-19 13:56:44 +08:00
parent 00d6481818
commit 02c22c990b
1 changed files with 16 additions and 0 deletions

View File

@ -327,7 +327,9 @@ ForceReply:
More information about [Inline mode](https://core.telegram.org/bots/inline).
#### inline_handler
Now, you can use inline_handler to get inline_query in telebot.
```python
@bot.inline_handler(lambda query: query.query == 'text')
@ -335,6 +337,20 @@ def query_text(inline_query):
# Query message is text
```
#### chosen_inline_handler
Use chosen_inline_handler to get chosen_inline_result in telebot. Don't forgot add the /setinlinefeedback
command for @Botfather.
More information : [collecting-feedback](https://core.telegram.org/bots/inline#collecting-feedback)
```python
@bot.chosen_inline_handler(func=lambda chosen_inline_result: True)
def test_chosen(chosen_inline_result):
# Process all chosen_inline_result.
```
#### answer_inline_query
```python