Skip to content

Commit 02c22c9

Browse files
committed
Add chosen_inline_handler doc.
1 parent 00d6481 commit 02c22c9

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,30 @@ ForceReply:
327327
More information about [Inline mode](https://core.telegram.org/bots/inline).
328328

329329
#### inline_handler
330+
330331
Now, you can use inline_handler to get inline_query in telebot.
332+
331333
```python
332334

333335
@bot.inline_handler(lambda query: query.query == 'text')
334336
def query_text(inline_query):
335337
# Query message is text
336338
```
337339

340+
341+
#### chosen_inline_handler
342+
343+
Use chosen_inline_handler to get chosen_inline_result in telebot. Don't forgot add the /setinlinefeedback
344+
command for @Botfather.
345+
346+
More information : [collecting-feedback](https://core.telegram.org/bots/inline#collecting-feedback)
347+
348+
```python
349+
@bot.chosen_inline_handler(func=lambda chosen_inline_result: True)
350+
def test_chosen(chosen_inline_result):
351+
# Process all chosen_inline_result.
352+
```
353+
338354
#### answer_inline_query
339355

340356
```python

0 commit comments

Comments
 (0)