add localization for forwarding prefix and integrate captcha dependency

This commit is contained in:
2026-07-02 22:01:41 +03:00
parent 73c838d331
commit a097abf5bc
4 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ async def process_captcha(message: Message, state: FSMContext, bot: Bot, locale:
try:
db_msg_id = data.get("db_msg_id", "N/A")
prefix = f"Forwarding, ID [{db_msg_id}]:"
prefix = _("forwarding_prefix", locale=locale, id=db_msg_id)
target_chat_id = settings.group_chat_id
if data.get('has_media'):
@@ -85,7 +85,7 @@ async def handle_any_message(message: Message, state: FSMContext, bot: Bot, loca
if settings.disable_captcha:
try:
wait_message = await message.answer(_("processing_message", locale=locale))
prefix = f"Forwarding, ID [{db_msg_id}]:"
prefix = _("forwarding_prefix", locale=locale, id=db_msg_id)
target_chat_id = settings.group_chat_id
if has_media: