init
This commit is contained in:
20
bot/handlers/inline/on_inline.py
Normal file
20
bot/handlers/inline/on_inline.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from aiogram import Router
|
||||
|
||||
from aiogram.types import InlineQuery
|
||||
from aiogram.types import InlineQueryResultCachedVoice
|
||||
|
||||
from ...utils.config import config
|
||||
|
||||
router = Router()
|
||||
|
||||
|
||||
@router.inline_query()
|
||||
async def default_inline_query(inline_query: InlineQuery):
|
||||
await inline_query.answer(
|
||||
[
|
||||
InlineQueryResultCachedVoice(
|
||||
id=id_[-1:-8:-1], voice_file_id=id_, title=config.send[id_]
|
||||
)
|
||||
for id_ in config.send.keys()
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user