This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
PyrogramBotBase/plugins/inline.py

23 lines
658 B
Python
Raw Normal View History

from pyrogram.types import (
InlineQuery,
InlineQueryResultArticle,
InputTextMessageContent,
)
2023-08-03 22:29:47 +03:00
from classes.pyroclient import PyroClient
2023-08-17 16:01:35 +03:00
@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`",
)
]
)