Fixed language code typo

This commit is contained in:
Profitroll 2023-02-17 23:18:54 +01:00
parent fcd59b7aca
commit 7918049f49

View File

@ -7,5 +7,5 @@ from modules.utils import locale
# Callback empty =============================================================================================================== # Callback empty ===============================================================================================================
@app.on_callback_query(filters.regex("nothing")) @app.on_callback_query(filters.regex("nothing"))
async def callback_query_nothing(app: PosterClient, clb: CallbackQuery): 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))
# ============================================================================================================================== # ==============================================================================================================================