mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 01:15:31 +00:00
Change inline_example.
This commit is contained in:
parent
787ebe3e63
commit
e932c6f968
1 changed files with 2 additions and 1 deletions
|
|
@ -16,8 +16,9 @@ dp = Dispatcher(bot)
|
|||
|
||||
@dp.inline_handler()
|
||||
async def inline_echo(inline_query: types.InlineQuery):
|
||||
input_content = types.InputTextMessageContent(inline_query.query or 'echo')
|
||||
item = types.InlineQueryResultArticle(id='1', title='echo',
|
||||
input_message_content=types.InputTextMessageContent(inline_query.query))
|
||||
input_message_content=input_content)
|
||||
await bot.answer_inline_query(inline_query.id, results=[item], cache_time=1)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue