mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
Update README.rst
This commit is contained in:
parent
06ec465c5f
commit
cb99341848
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ To enable our bot to respond to inline queries, we can add the following (you wi
|
|||
... if update.inline_query:
|
||||
... query = bot.update.inline_query.query
|
||||
... results = list()
|
||||
... results.append(InlineQueryResultArticle(query.upper(), 'Caps', text_caps))
|
||||
... results.append(InlineQueryResultArticle(query.upper(), 'Caps', query.upper()))
|
||||
... bot.answerInlineQuery(update.inline_query.id, results)
|
||||
...
|
||||
>>> dispatcher.addTelegramInlineHandler(inline_caps)
|
||||
|
|
Loading…
Add table
Reference in a new issue