From c1ee9881060759ec691e94401ac78a542c516354 Mon Sep 17 00:00:00 2001 From: profitroll Date: Tue, 17 Jan 2023 14:37:36 +0100 Subject: [PATCH] Added empty callback --- modules/callbacks/nothing.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/callbacks/nothing.py diff --git a/modules/callbacks/nothing.py b/modules/callbacks/nothing.py new file mode 100644 index 0000000..538ed27 --- /dev/null +++ b/modules/callbacks/nothing.py @@ -0,0 +1,11 @@ +from app import app +from pyrogram import filters +from pyrogram.types import CallbackQuery +from pyrogram.client import Client +from modules.utils import locale + +# Callback empty =============================================================================================================== +@app.on_callback_query(filters.regex("nothing")) +async def callback_query_nothing(app: Client, clb: CallbackQuery): + await clb.answer(text=locale("nothing", "callback", locale=clb.from_user)) +# ============================================================================================================================== \ No newline at end of file