diff --git a/bot/handlers/main_group_admin.py b/bot/handlers/main_group_admin.py index 4e142bd..fb38478 100644 --- a/bot/handlers/main_group_admin.py +++ b/bot/handlers/main_group_admin.py @@ -7,7 +7,7 @@ async def error_no_reply(message: types.Message): - lang = message.bot.get("config").get("lang") + lang = message.bot.get("config").lang await message.reply(get_string(lang, "error_no_reply")) @@ -31,7 +31,7 @@ async def cmd_ro(message: types.Message): :param message: Telegram message starting with /ro """ - lang = message.bot.get("config").get("lang") + lang = message.bot.get("config").lang readonly_to = await message.chat.get_member(message.reply_to_message.from_user.id) if readonly_to.is_chat_admin(): await message.reply(get_string(lang, "error_restrict_admin")) @@ -60,7 +60,7 @@ async def cmd_nomedia(message: types.Message): :param message: Telegram message starting with /nomedia """ - lang = message.bot.get("config").get("lang") + lang = message.bot.get("config").lang nomedia_to = await message.chat.get_member(message.reply_to_message.from_user.id) if nomedia_to.is_chat_admin(): await message.reply(get_string(lang, "error_restrict_admin")) diff --git a/bot/handlers/main_group_user.py b/bot/handlers/main_group_user.py index e6ec687..75db9df 100644 --- a/bot/handlers/main_group_user.py +++ b/bot/handlers/main_group_user.py @@ -17,7 +17,7 @@ def get_message_url(chat_id, message_id): async def error_no_reply(message: types.Message): - lang = message.bot.get("config").get("lang") + lang = message.bot.get("config").lang await message.reply(get_string(lang, "error_no_reply"))