This repository has been archived on 2024-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
EmojiCaptchaBot/plugins/callbacks/nothing.py

13 lines
456 B
Python
Raw Permalink Normal View History

2023-08-10 14:05:40 +03:00
from pyrogram import filters
from pyrogram.types import CallbackQuery
from classes.pyroclient import PyroClient
2023-08-11 22:33:08 +03:00
@PyroClient.on_callback_query(filters.regex(r"nothing")) # type: ignore
2023-08-10 14:05:40 +03:00
async def callback_nothing(app: PyroClient, callback: CallbackQuery):
2023-08-17 17:37:42 +03:00
group = await app.find_group(callback.message.chat.id)
2023-08-11 16:04:21 +03:00
locale = group.select_locale(app, callback.message.from_user)
await callback.answer(app._("nothing", "callbacks", locale=locale))