23 lines
658 B
Python
23 lines
658 B
Python
from pyrogram.types import (
|
|
InlineQuery,
|
|
InlineQueryResultArticle,
|
|
InputTextMessageContent,
|
|
)
|
|
|
|
from classes.pyroclient import PyroClient
|
|
|
|
|
|
@PyroClient.on_inline_query() # type: ignore
|
|
async def inline(app: PyroClient, inline_query: InlineQuery):
|
|
await inline_query.answer(
|
|
results=[
|
|
InlineQueryResultArticle(
|
|
title="Nothing here",
|
|
input_message_content=InputTextMessageContent(
|
|
"Please set up your InlineQuery in `plugins/inline.py`"
|
|
),
|
|
description="Please set up your InlineQuery in `plugins/inline.py`",
|
|
)
|
|
]
|
|
)
|