mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Add chosen_inline_handler doc.
This commit is contained in:
parent
00d6481818
commit
02c22c990b
16
README.md
16
README.md
@ -327,7 +327,9 @@ ForceReply:
|
|||||||
More information about [Inline mode](https://core.telegram.org/bots/inline).
|
More information about [Inline mode](https://core.telegram.org/bots/inline).
|
||||||
|
|
||||||
#### inline_handler
|
#### inline_handler
|
||||||
|
|
||||||
Now, you can use inline_handler to get inline_query in telebot.
|
Now, you can use inline_handler to get inline_query in telebot.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
||||||
@bot.inline_handler(lambda query: query.query == 'text')
|
@bot.inline_handler(lambda query: query.query == 'text')
|
||||||
@ -335,6 +337,20 @@ def query_text(inline_query):
|
|||||||
# Query message is text
|
# 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
|
#### answer_inline_query
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
Loading…
Reference in New Issue
Block a user