from pyrogram import filters from pyrogram.types import CallbackQuery from classes.pyroclient import PyroClient from classes.pyrogroup import PyroGroup @PyroClient.on_callback_query(filters.regex(r"nothing")) async def callback_nothing(app: PyroClient, callback: CallbackQuery): group = await PyroGroup.create_if_not_exists(callback.message.chat.id, None, True) locale = group.select_locale(app, callback.message.from_user) await callback.answer(app._("nothing", "callbacks", locale=locale))