Skip to content

Commit 1c039b5

Browse files
MohanReddy369J-Rios
authored andcommitted
Update join_captcha_bot.py and add TIME_UNIT_REQUIRED to all language files
1 parent 595d96d commit 1c039b5

29 files changed

+85
-40
lines changed

src/join_captcha_bot.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,18 +2374,7 @@ async def cmd_time(update: Update, context: ContextTypes.DEFAULT_TYPE):
23742374
if len(args) < 2:
23752375
await tlg_send_msg_type_chat(
23762376
bot, chat_type, chat_id,
2377-
"""⚠️ Please specify unit.
2378-
Usage:
2379-
Seconds:
2380-
/time <value> sec
2381-
or /time <value> secs
2382-
or /time <value> seconds
2383-
or /time <value> s
2384-
Minutes:
2385-
/time <value> min
2386-
or /time <value> mins
2387-
or /time <value> minutes
2388-
or /time <value> m""",
2377+
TEXT[lang]["TIME_UNIT_REQUIRED"],
23892378
topic_id=tlg_get_msg_topic(update_msg))
23902379
return
23912380
# Get time value and unit

src/language/ar.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,7 @@
309309
"Configuration changed. Captcha messages text will be shown in a single language.",
310310

311311
"BILANG_MSG_YES":
312-
"Configuration changed. Captcha messages text will be shown in two languages."
312+
"Configuration changed. Captcha messages text will be shown in two languages.",
313+
"TIME_UNIT_REQUIRED":
314+
"⚠️ Please specify unit.\nUsage:\nSeconds:\n/time <value> sec\nor /time <value> secs\nor /time <value> seconds\nor /time <value> s\nMinutes:\n/time <value> min\nor /time <value> mins\nor /time <value> minutes\nor /time <value> m"
313315
}

src/language/be.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,7 @@
309309
"Configuration changed. Captcha messages text will be shown in a single language.",
310310

311311
"BILANG_MSG_YES":
312-
"Configuration changed. Captcha messages text will be shown in two languages."
312+
"Configuration changed. Captcha messages text will be shown in two languages.",
313+
"TIME_UNIT_REQUIRED":
314+
"⚠️ Please specify unit.\nUsage:\nSeconds:\n/time <value> sec\nor /time <value> secs\nor /time <value> seconds\nor /time <value> s\nMinutes:\n/time <value> min\nor /time <value> mins\nor /time <value> minutes\nor /time <value> m"
313315
}

src/language/ca.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,7 @@
309309
"Configuration changed. Captcha messages text will be shown in a single language.",
310310

311311
"BILANG_MSG_YES":
312-
"Configuration changed. Captcha messages text will be shown in two languages."
312+
"Configuration changed. Captcha messages text will be shown in two languages.",
313+
"TIME_UNIT_REQUIRED":
314+
"⚠️ Please specify unit.\nUsage:\nSeconds:\n/time <value> sec\nor /time <value> secs\nor /time <value> seconds\nor /time <value> s\nMinutes:\n/time <value> min\nor /time <value> mins\nor /time <value> minutes\nor /time <value> m"
313315
}

src/language/de.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,7 @@
309309
"Configuration changed. Captcha messages text will be shown in a single language.",
310310

311311
"BILANG_MSG_YES":
312-
"Configuration changed. Captcha messages text will be shown in two languages."
312+
"Configuration changed. Captcha messages text will be shown in two languages.",
313+
"TIME_UNIT_REQUIRED":
314+
"⚠️ Please specify unit.\nUsage:\nSeconds:\n/time <value> sec\nor /time <value> secs\nor /time <value> seconds\nor /time <value> s\nMinutes:\n/time <value> min\nor /time <value> mins\nor /time <value> minutes\nor /time <value> m"
313315
}

src/language/el.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,7 @@
309309
"Configuration changed. Captcha messages text will be shown in a single language.",
310310

311311
"BILANG_MSG_YES":
312-
"Configuration changed. Captcha messages text will be shown in two languages."
312+
"Configuration changed. Captcha messages text will be shown in two languages.",
313+
"TIME_UNIT_REQUIRED":
314+
"⚠️ Please specify unit.\nUsage:\nSeconds:\n/time <value> sec\nor /time <value> secs\nor /time <value> seconds\nor /time <value> s\nMinutes:\n/time <value> min\nor /time <value> mins\nor /time <value> minutes\nor /time <value> m"
313315
}

src/language/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,7 @@
309309
"Configuration changed. Captcha messages text will be shown in a single language.",
310310

311311
"BILANG_MSG_YES":
312-
"Configuration changed. Captcha messages text will be shown in two languages."
312+
"Configuration changed. Captcha messages text will be shown in two languages.",
313+
"TIME_UNIT_REQUIRED":
314+
"⚠️ Please specify unit.\nUsage:\nSeconds:\n/time <value> sec\nor /time <value> secs\nor /time <value> seconds\nor /time <value> s\nMinutes:\n/time <value> min\nor /time <value> mins\nor /time <value> minutes\nor /time <value> m"
313315
}

src/language/eo.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,7 @@
309309
"Configuration changed. Captcha messages text will be shown in a single language.",
310310

311311
"BILANG_MSG_YES":
312-
"Configuration changed. Captcha messages text will be shown in two languages."
312+
"Configuration changed. Captcha messages text will be shown in two languages.",
313+
"TIME_UNIT_REQUIRED":
314+
"⚠️ Please specify unit.\nUsage:\nSeconds:\n/time <value> sec\nor /time <value> secs\nor /time <value> seconds\nor /time <value> s\nMinutes:\n/time <value> min\nor /time <value> mins\nor /time <value> minutes\nor /time <value> m"
313315
}

src/language/es.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,7 @@
309309
"Configuración cambiada. Los Mensajes de Captcha se enviarán en un solo idioma.",
310310

311311
"BILANG_MSG_YES":
312-
"Configuración cambiada. Los Mensajes de Captcha se enviarán en dos idiomas."
312+
"Configuración cambiada. Los Mensajes de Captcha se enviarán en dos idiomas.",
313+
"TIME_UNIT_REQUIRED":
314+
"⚠️ Please specify unit.\nUsage:\nSeconds:\n/time <value> sec\nor /time <value> secs\nor /time <value> seconds\nor /time <value> s\nMinutes:\n/time <value> min\nor /time <value> mins\nor /time <value> minutes\nor /time <value> m"
313315
}

src/language/eu.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,7 @@
309309
"Configuration changed. Captcha messages text will be shown in a single language.",
310310

311311
"BILANG_MSG_YES":
312-
"Configuration changed. Captcha messages text will be shown in two languages."
312+
"Configuration changed. Captcha messages text will be shown in two languages.",
313+
"TIME_UNIT_REQUIRED":
314+
"⚠️ Please specify unit.\nUsage:\nSeconds:\n/time <value> sec\nor /time <value> secs\nor /time <value> seconds\nor /time <value> s\nMinutes:\n/time <value> min\nor /time <value> mins\nor /time <value> minutes\nor /time <value> m"
313315
}

0 commit comments

Comments
 (0)