From 7918049f49e0016bd0cc814bb42b0168448cfeba Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Fri, 17 Feb 2023 23:18:54 +0100 Subject: [PATCH] Fixed language code typo --- plugins/callbacks/nothing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/callbacks/nothing.py b/plugins/callbacks/nothing.py index 7052b06..e771c8f 100644 --- a/plugins/callbacks/nothing.py +++ b/plugins/callbacks/nothing.py @@ -7,5 +7,5 @@ from modules.utils import locale # Callback empty =============================================================================================================== @app.on_callback_query(filters.regex("nothing")) async def callback_query_nothing(app: PosterClient, clb: CallbackQuery): - await clb.answer(text=locale("nothing", "callback", locale=clb.from_user)) + await clb.answer(text=locale("nothing", "callback", locale=clb.from_user.language_code)) # ============================================================================================================================== \ No newline at end of file