From 02c22c990b1affe9d43d8920f6b53fa10c38a82e Mon Sep 17 00:00:00 2001 From: eternnoir Date: Tue, 19 Jan 2016 13:56:44 +0800 Subject: [PATCH] Add chosen_inline_handler doc. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index e278b6b..42e0110 100644 --- a/README.md +++ b/README.md @@ -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