Added callback, command and inline to templates

This commit is contained in:
2023-05-24 11:22:15 +02:00
parent 54ee135660
commit 49b81d8b1a
3 changed files with 45 additions and 0 deletions

23
plugins/inline.py Normal file
View File

@@ -0,0 +1,23 @@
from pyrogram.client import Client
from pyrogram.types import (
InlineQuery,
InlineQueryResultArticle,
InputTextMessageContent,
)
from modules.app import PyroClient
@Client.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`",
)
]
)