21 lines
491 B
Python
21 lines
491 B
Python
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()
|
|
]
|
|
)
|