Queer European MD passionate about IT

messages.py 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197
  1. """Default messages for bot functions."""
  2. davtelepot_messages = {
  3. 'long_message': {
  4. 'file_name': {
  5. 'en': "Long message.html",
  6. 'it': "Messaggio lungo.html",
  7. },
  8. 'caption': {
  9. 'en': "<b>Long message</b>\n\n"
  10. "This message is too long to be sent as individual "
  11. "messages.",
  12. 'it': "<b>Messaggio lungo</b>\n\n"
  13. "Questo messaggio è troppo lungo per essere inviato come "
  14. "messaggi separati.",
  15. }
  16. }
  17. }
  18. default_admin_messages = {
  19. 'cancel': {
  20. 'button': {
  21. 'en': "↩️ Cancel",
  22. 'it': "↩️ Annulla"
  23. },
  24. 'done': {
  25. 'en': "↩️ Operation cancelled",
  26. 'it': "↩️ Operazione annullata",
  27. },
  28. 'lower': {
  29. 'en': "cancel",
  30. 'it': "annulla",
  31. },
  32. },
  33. 'confirm': {
  34. 'en': "🔄 Click again to confirm",
  35. 'it': "🔄 Clicka di nuovo per confermare",
  36. },
  37. 'db_command': {
  38. 'description': {
  39. 'en': "Ask for bot database via Telegram",
  40. 'it': "Ricevi il database del bot via Telegram"
  41. },
  42. 'not_sqlite': {
  43. 'en': "Only SQLite databases may be sent via Telegram, since they "
  44. "are single-file databases.\n"
  45. "This bot has a `{db_type}` database.",
  46. 'it': "Via Telegram possono essere inviati solo database SQLite, "
  47. "in quanto composti di un solo file.\n"
  48. "Questo bot ha invece un database `{db_type}`."
  49. },
  50. 'file_caption': {
  51. 'en': "Here is bot database.",
  52. 'it': "Ecco il database!"
  53. },
  54. 'db_sent': {
  55. 'en': "Database sent.",
  56. 'it': "Database inviato."
  57. }
  58. },
  59. 'error': {
  60. 'text': {
  61. 'en': "❌️ Error!",
  62. 'it': "❌️ Errore!"
  63. },
  64. },
  65. 'errors_command': {
  66. 'description': {
  67. 'en': "Receive bot error log file, if set",
  68. 'it': "Ricevi il file di log degli errori del bot, se impostato"
  69. },
  70. 'no_log': {
  71. 'en': "Sorry but no errors log file is set.\n"
  72. "To set it, use `bot.set_errors_file_name` instance method"
  73. "or `Bot.set_class_errors_file_name` class method.",
  74. 'it': "Spiacente ma il file di log degli errori non è stato "
  75. "impostato.\n"
  76. "Per impostarlo, usa il metodo d'istanza "
  77. "`bot.set_errors_file_name` o il metodo di classe"
  78. "`Bot.set_class_errors_file_name`."
  79. },
  80. 'empty_log': {
  81. 'en': "Congratulations! Errors log is empty!",
  82. 'it': "Congratulazioni! Il log degli errori è vuoto!"
  83. },
  84. 'sending_failure': {
  85. 'en': "Sending errors log file failed!\n\n"
  86. "<b>Error:</b>\n"
  87. "<code>{e}</code>",
  88. 'it': "Inviio del messaggio di log degli errori fallito!\n\n"
  89. "<b>Errore:</b>\n"
  90. "<code>{e}</code>"
  91. },
  92. 'here_is_log_file': {
  93. 'en': "Here is the complete errors log file.",
  94. 'it': "Ecco il file di log degli errori completo."
  95. },
  96. 'log_file_first_lines': {
  97. 'en': "Here are the first {lines} lines of the errors log file.",
  98. 'it': "Ecco le prime {lines} righe del file di log degli errori."
  99. },
  100. 'log_file_last_lines': {
  101. 'en': "Here are the last {lines} lines of the errors log file.\n"
  102. "Newer lines are at the top of the file.",
  103. 'it': "Ecco le ultime {lines} righe del file di log degli "
  104. "errori.\n"
  105. "L'ordine è cronologico, con i messaggi nuovi in alto."
  106. }
  107. },
  108. 'father_command': {
  109. 'back': {
  110. 'en': "↩️ Back",
  111. 'it': "↩️ Indietro",
  112. },
  113. 'del': {
  114. 'done': {
  115. 'en': "✅ Commands deleted",
  116. 'it': "✅ Comandi rimossi",
  117. },
  118. 'error': {
  119. 'en': "Something went wrong 😕",
  120. 'it': "Qualcosa è andato storto 😕",
  121. },
  122. 'no_change': {
  123. 'en': "❌ No command stored",
  124. 'it': "❌ Nessun comando salvato",
  125. },
  126. },
  127. 'description': {
  128. 'en': "Edit the @BotFather commands",
  129. 'it': "Modifica i comandi con @BotFather",
  130. },
  131. 'error': {
  132. 'en': "❌ Error! ❌",
  133. 'it': "❌ Errore! ❌",
  134. },
  135. 'get': {
  136. 'empty': {
  137. 'en': "No command set yet. You may use <code>✏️ Change</code> "
  138. "button",
  139. 'it': "Nessun comando impostato ancora. Puoi usare il bottone "
  140. "<code>✏️ Modifica</code>",
  141. },
  142. 'panel': {
  143. 'en': "🤖 <b>BotFather commands</b> ℹ️\n\n"
  144. "{commands}",
  145. 'it': "🤖 <b>Comandi su BotFather</b> ℹ️\n\n"
  146. "{commands}",
  147. },
  148. },
  149. 'modes': [
  150. {
  151. 'id': "get",
  152. 'name': {
  153. 'en': "See",
  154. 'it': "Consulta"
  155. },
  156. 'symbol': "ℹ️",
  157. 'description': {
  158. 'en': "See commands stored by @BotFather",
  159. 'it': "Consulta i comandi salvati su @BotFather"
  160. },
  161. },
  162. {
  163. 'id': "set",
  164. 'name': {
  165. 'en': "Change",
  166. 'it': "Modifica"
  167. },
  168. 'symbol': "✏️",
  169. 'description': {
  170. 'en': "Change commands stored by @BotFather",
  171. 'it': "Modifica i comandi salvati su @BotFather"
  172. },
  173. },
  174. {
  175. 'id': "del",
  176. 'name': {
  177. 'en': "Delete",
  178. 'it': "Cancella"
  179. },
  180. 'symbol': "🗑",
  181. 'description': {
  182. 'en': "Delete commands stored by @BotFather",
  183. 'it': "Cancella i comandi salvati su @BotFather"
  184. },
  185. },
  186. {
  187. 'id': "settings",
  188. 'name': {
  189. 'en': "Settings",
  190. 'it': "Impostazioni"
  191. },
  192. 'symbol': "⚙️",
  193. 'description': {
  194. 'en': "Set commands to hide or to add",
  195. 'it': "Imposta comandi da nascondere o aggiungere"
  196. },
  197. },
  198. ],
  199. 'set': {
  200. 'button': {
  201. 'en': "⚠️ Set these commands 🔧",
  202. 'it': "⚠️ Imposta questi comandi 🔧",
  203. },
  204. 'done': {
  205. 'en': "✅ Done!",
  206. 'it': "✅ Fatto!",
  207. },
  208. 'error': {
  209. 'en': "Something went wrong 😕",
  210. 'it': "Qualcosa è andato storto 😕",
  211. },
  212. 'header': {
  213. 'en': "✏️ <b>Change commands stored by @BotFather 🤖</b>",
  214. 'it': "✏️ <b>Modifica i comandi salvati su @BotFather 🤖</b>",
  215. },
  216. 'legend': {
  217. 'en': "<b>Legend</b>\n"
  218. "✅ <i>Already stored</i>\n"
  219. "✏️ <i>New description</i>\n"
  220. "☑ <i>New command</i>\n"
  221. "❌ <i>Will be removed</i>",
  222. 'it': "<b>Legenda</b>\n"
  223. "✅ <i>Già presente</i>\n"
  224. "✏️ <i>Nuova descrizione</i>\n"
  225. "☑ <i>Nuovo comando</i>\n"
  226. "❌ <i>Comando da eliminare</i>",
  227. },
  228. 'no_change': {
  229. 'en': "❌ No change detected",
  230. 'it': "❌ Nessuna modifica",
  231. },
  232. },
  233. 'settings': {
  234. 'browse_records': {
  235. 'en': "✏️ <b>Edit BotFather settings</b> ⚙️\n\n"
  236. "Select a record to edit.\n\n"
  237. "{commands_list}\n\n"
  238. "<i>Legend</i>\n"
  239. "➕ Added commands\n"
  240. "➖ Hidden commands\n\n"
  241. "Showing records from {record_interval[0]} to "
  242. "{record_interval[1]} of {record_interval[2]}",
  243. 'it': "✏️ <b>Modifica impostazioni di BotFather</b> ⚙\n\n️"
  244. "Seleziona un'impostazione da modificare.\n\n"
  245. "{commands_list}\n\n"
  246. "<i>Legenda</i>\n"
  247. "➕ Comandi aggiunti\n"
  248. "➖ Comandi nascosti\n\n"
  249. "Record da {record_interval[0]} a "
  250. "{record_interval[1]} di {record_interval[2]}",
  251. },
  252. 'modes': {
  253. 'add': {
  254. 'add': {
  255. 'done': {
  256. 'en': "➕️️ <b>Added additional command</b>\n\n"
  257. "Command: {command}\n"
  258. "Description: {description}",
  259. 'it': "➕️️ <b>Inserito comando aggiuntivo</b>\n\n"
  260. "Comando: {command}\n"
  261. "Descrizione: {description}",
  262. },
  263. 'popup': {
  264. 'en': "Write the command to add",
  265. 'it': "Scrivimi il comando da aggiungere",
  266. },
  267. 'text': {
  268. 'en': "Write the command to add or /cancel this operation",
  269. 'it': "Scrivimi il comando da aggiungere o /annulla",
  270. },
  271. },
  272. 'description': {
  273. 'en': "Add command to default list",
  274. 'it': "Aggiungi un comando dalla lista autogenerata"
  275. },
  276. 'edit': {
  277. 'done': {
  278. 'en': "✏️ <b>Edited additional command</b>\n\n"
  279. "Command: {command}\n"
  280. "Description: {description}",
  281. 'it': "✏️ <b>Comando da nascondere modificato</b>\n\n"
  282. "Comando: {command}\n"
  283. "Descrizione: {description}",
  284. },
  285. },
  286. 'error': {
  287. 'description_too_long': {
  288. 'en': "<b>Description is too long</b>\n\n"
  289. "Description length must be 3-256 chars.",
  290. 'it': "<b>Descrizione troppo lunga</b>\n\n"
  291. "La descrizione deve essere di 3-256 caratteri.",
  292. },
  293. 'duplicate_record': {
  294. 'en': "<b>Duplicate record</b>\n\n"
  295. "Command is already being added to default "
  296. "output. Edit that record if you need to.",
  297. 'it': "<b>Record già presente</b>\n\n"
  298. "Questo comando è già aggiunto a quelli di "
  299. "default. Modifica il record già presente se "
  300. "necessario.",
  301. },
  302. 'missing_description': {
  303. 'en': "<b>Missing description</b>\n\n"
  304. "Additional commands must have a description "
  305. "(3-256 chars).",
  306. 'it': "<b>Descrizione mancante</b>\n\n"
  307. "I comandi aggiuntivi devono avere una "
  308. "descrizione di 3-256 caratteri.",
  309. },
  310. 'unhandled_exception': {
  311. 'en': "❌ <b>Unhandled exception </b> ⚠️",
  312. 'it': "❌ <b>Errore imprevisto </b> ⚠️",
  313. },
  314. },
  315. 'name': {
  316. 'en': "Add",
  317. 'it': "Aggiungi"
  318. },
  319. 'symbol': "➕️",
  320. },
  321. 'hide': {
  322. 'add': {
  323. 'done': {
  324. 'en': "➖ <b>Added hidden command</b>\n\n"
  325. "Command: {command}\n",
  326. 'it': "➖ <b>Comando da nascondere aggiunto</b>"
  327. "Comando: {command}\n",
  328. },
  329. 'popup': {
  330. 'en': "Write the command to hide",
  331. 'it': "Scrivimi il comando da nascondere",
  332. },
  333. 'text': {
  334. 'en': "Write the command to hide or /cancel this operation",
  335. 'it': "Scrivimi il comando da nascondere o /annulla",
  336. }
  337. },
  338. 'description': {
  339. 'en': "Hide command from default list",
  340. 'it': "Nascondi un comando dalla lista autogenerata"
  341. },
  342. 'edit': {
  343. 'done': {
  344. 'en': "✏️ <b>Edited hidden command</b>\n\n"
  345. "Command: {command}\n"
  346. "Description: {description}",
  347. 'it': "✏️ <b>Comando da nascondere modificato</b>\n\n"
  348. "Comando: {command}\n"
  349. "Descrizione: {description}",
  350. },
  351. },
  352. 'name': {
  353. 'en': "Hide",
  354. 'it': "Nascondi"
  355. },
  356. 'symbol': "➖️",
  357. },
  358. 'edit': {
  359. 'button': {
  360. 'en': "✏️ Edit record",
  361. 'it': "✏️ Modifica record"
  362. },
  363. 'description': {
  364. 'en': "Edit added or hidden commands",
  365. 'it': "Modifica i comandi aggiunti o nascosti"
  366. },
  367. 'edit': {
  368. 'popup': {
  369. 'en': "Write the new description",
  370. 'it': "Scrivimi la nuova descrizione",
  371. },
  372. 'text': {
  373. 'en': "Write the new description for command "
  374. "{command} or /cancel",
  375. 'it': "Scrivimi la nuova descrizione per il "
  376. "comando {command} o /annulla",
  377. },
  378. 'done': {
  379. 'en': "✏️ Edit succeeded ✅\n\n"
  380. "Command: {command}\n"""
  381. "Description: {description}",
  382. 'it': "✏️ Modifica completata ✅\n\n"
  383. "Comando: {command}\n"""
  384. "Descrizione: {description}",
  385. }
  386. },
  387. 'name': {
  388. 'en': "Edit",
  389. 'it': "Modifica"
  390. },
  391. 'panel': {
  392. 'delete': {
  393. 'button': {
  394. 'en': "❌ Delete record",
  395. 'it': "❌ Elimina record",
  396. },
  397. 'done': {
  398. 'popup': {
  399. 'en': "Record deleted ✅",
  400. 'it': "Record eliminato ✅",
  401. },
  402. 'text': {
  403. 'en': "Record deleted ✅",
  404. 'it': "Record eliminato ✅",
  405. },
  406. },
  407. },
  408. 'edit_description': {
  409. 'button': {
  410. 'en': "✏️ Edit description",
  411. 'it': "✏️ Modifica descrizione",
  412. },
  413. },
  414. 'text': {
  415. 'en': "✏️ Edit record ✅\n\n"
  416. "Command: {command}\n"""
  417. "Description: {description}",
  418. 'it': "✏️ Modifica record\n\n"
  419. "Comando: {command}\n"""
  420. "Descrizione: {description}",
  421. },
  422. },
  423. 'symbol': "✏️",
  424. },
  425. },
  426. 'panel': {
  427. 'en': "🤖 <b>@BotFather settings</b> ⚙️\n\n"
  428. "➕ <i>Additional commands</i>\n"
  429. "{additional_commands}\n\n"
  430. "➖ <i>Hidden commands</i>\n"
  431. "{hidden_commands}",
  432. 'it': "⚙️ <b>Impostazioni di @BotFather</b> 🤖\n\n"
  433. "➕ <i>Comandi aggiuntivi</i>\n"
  434. "{additional_commands}\n\n"
  435. "➖ <i>Comandi nascosti</i>\n"
  436. "{hidden_commands}",
  437. },
  438. },
  439. 'title': {
  440. 'en': "🤖 <b>BotFather</b>",
  441. 'it': "🤖 <b>BotFather</b>",
  442. },
  443. },
  444. 'log_command': {
  445. 'description': {
  446. 'en': "Receive bot log file, if set",
  447. 'it': "Ricevi il file di log del bot, se impostato"
  448. },
  449. 'no_log': {
  450. 'en': "Sorry but no log file is set.\n"
  451. "To set it, use `bot.set_log_file_name` instance method or "
  452. "`Bot.set_class_log_file_name` class method.",
  453. 'it': "Spiacente ma il file di log non è stato impostato.\n"
  454. "Per impostarlo, usa il metodo d'istanza "
  455. "`bot.set_log_file_name` o il metodo di classe"
  456. "`Bot.set_class_log_file_name`."
  457. },
  458. 'sending_failure': {
  459. 'en': "Sending log file failed!\n\n"
  460. "<b>Error:</b>\n"
  461. "<code>{e}</code>",
  462. 'it': "Inviio del messaggio di log fallito!\n\n"
  463. "<b>Errore:</b>\n"
  464. "<code>{e}</code>"
  465. },
  466. 'here_is_log_file': {
  467. 'en': "Here is the complete log file.",
  468. 'it': "Ecco il file di log completo."
  469. },
  470. 'log_file_first_lines': {
  471. 'en': "Here are the first {lines} lines of the log file.",
  472. 'it': "Ecco le prime {lines} righe del file di log."
  473. },
  474. 'log_file_last_lines': {
  475. 'en': "Here are the last {lines} lines of the log file.\n"
  476. "Newer lines are at the top of the file.",
  477. 'it': "Ecco le ultime {lines} righe del file di log.\n"
  478. "L'ordine è cronologico, con i messaggi nuovi in alto."
  479. }
  480. },
  481. 'maintenance_command': {
  482. 'description': {
  483. 'en': "Put the bot under maintenance",
  484. 'it': "Metti il bot in manutenzione"
  485. },
  486. 'maintenance_started': {
  487. 'en': "<i>Bot has just been put under maintenance!</i>\n\n"
  488. "Until further notice, it will reply to users "
  489. "with the following message:\n\n"
  490. "{message}",
  491. 'it': "<i>Il bot è stato messo in manutenzione!</i>\n\n"
  492. "Fino a nuovo ordine, risponderà a tutti i comandi con il "
  493. "seguente messaggio\n\n"
  494. "{message}"
  495. },
  496. 'maintenance_ended': {
  497. 'en': "<i>Maintenance ended!</i>",
  498. 'it': "<i>Manutenzione terminata!</i>"
  499. }
  500. },
  501. 'new_version': {
  502. 'title': {
  503. 'en': "🔔 New version installed ✅",
  504. 'it': "🔔 Rilevata nuova versione installata! ✅",
  505. },
  506. 'last_commit': {
  507. 'en': "Old commit: <code>{old_record[last_commit]}</code>\n"
  508. "New commit: <code>{new_record[last_commit]}</code>",
  509. 'it': "Vecchio commit: <code>{old_record[last_commit]}</code>\n"
  510. "Nuovo commit: <code>{new_record[last_commit]}</code>",
  511. },
  512. },
  513. 'query_button': {
  514. 'error': {
  515. 'en': "Error!",
  516. 'it': "Errore!",
  517. },
  518. 'file_name': {
  519. 'en': "Query result.csv",
  520. 'it': "Risultato della query.csv",
  521. },
  522. 'empty_file': {
  523. 'en': "No result to show.",
  524. 'it': "Nessun risultato da mostrare.",
  525. }
  526. },
  527. 'query_command': {
  528. 'description': {
  529. 'en': "Receive the result of a SQL query performed on bot "
  530. "database",
  531. 'it': "Ricevi il risultato di una query SQL sul database del bot"
  532. },
  533. 'help': {
  534. 'en': "Write a SQL query to be run on bot database.\n\n"
  535. "<b>Example</b>\n"
  536. "<code>/query SELECT * FROM users WHERE 0</code>",
  537. 'it': "Invia una query SQL da eseguire sul database del bot.\n\n"
  538. "<b>Esempio</b>\n"
  539. "<code>/query SELECT * FROM users WHERE 0</code>"
  540. },
  541. 'no_iterable': {
  542. 'en': "No result to show was returned",
  543. 'it': "La query non ha restituito risultati da mostrare"
  544. },
  545. 'exception': {
  546. 'en': "The query threw this error:",
  547. 'it': "La query ha dato questo errore:"
  548. },
  549. 'result': {
  550. 'en': "Query result",
  551. 'it': "Risultato della query"
  552. }
  553. },
  554. 'restart_command': {
  555. 'description': {
  556. 'en': "Restart bots",
  557. 'it': "Riavvia i bot"
  558. },
  559. 'restart_scheduled_message': {
  560. 'en': "Bots are being restarted, after pulling from repository.",
  561. 'it': "I bot verranno riavviati in pochi secondi, caricando "
  562. "prima le eventuali modifiche al codice."
  563. },
  564. 'restart_completed_message': {
  565. 'en': "<i>Restart was successful.</i>",
  566. 'it': "<i>Restart avvenuto con successo.</i>"
  567. }
  568. },
  569. 'select_command': {
  570. 'description': {
  571. 'en': "Receive the result of a SELECT query performed on bot "
  572. "database",
  573. 'it': "Ricevi il risultato di una query SQL di tipo SELECT "
  574. "sul database del bot"
  575. }
  576. },
  577. 'stop_button': {
  578. 'stop_text': {
  579. 'en': "Stop bots",
  580. 'it': "Ferma i bot"
  581. },
  582. 'cancel': {
  583. 'en': "Cancel",
  584. 'it': "Annulla"
  585. },
  586. 'confirm': {
  587. 'en': "Do you really want to stop all bots?",
  588. 'it': "Vuoi davvero fermare tutti i bot?"
  589. },
  590. 'stopping': {
  591. 'en': "Stopping bots...",
  592. 'it': "Arresto in corso..."
  593. },
  594. 'cancelled': {
  595. 'en': "Operation was cancelled",
  596. 'it': "Operazione annullata"
  597. }
  598. },
  599. 'stop_command': {
  600. 'description': {
  601. 'en': "Stop bots",
  602. 'it': "Ferma i bot"
  603. },
  604. 'text': {
  605. 'en': "Are you sure you want to stop all bots?\n"
  606. "To make them start again you will have to ssh-log "
  607. "in server.\n\n"
  608. "To restart the bots remotely use the /restart command "
  609. "instead (before starting over, a <code>git pull</code> "
  610. "is performed).",
  611. 'it': "Sei sicuro di voler fermare i bot?\n"
  612. "Per farli ripartire dovrai accedere al server.\n\n"
  613. "Per far ripartire i bot da remoto usa invece il comando "
  614. "/restart (prima di ripartire farò un "
  615. "<code>git pull</code>)."
  616. }
  617. },
  618. 'talk_command': {
  619. 'description': {
  620. 'en': "Choose a user and forward messages to each other",
  621. 'it': "Scegli un utente e il bot farà da tramite inoltrando a "
  622. "ognuno i messaggi dell'altro finché non terminerai la "
  623. "sessione"
  624. }
  625. },
  626. 'updates_available': {
  627. 'header': {
  628. 'en': "🔔 Updates available! ⬇️\n\n"
  629. "Click to /restart bot",
  630. 'it': "🔔 Aggiornamenti disponibili! ⬇\n\n"
  631. "Clicka qui per fare il /restart",
  632. },
  633. },
  634. 'version_command': {
  635. 'all_packages_updated': {
  636. 'en': "⌛️ All packages are updated! ✅",
  637. 'it': "⌛️ Tutti i pacchetti sono aggiornati! ✅",
  638. },
  639. 'checking_for_updates': {
  640. 'en': "⏳ Checking for updates... ☑️",
  641. 'it': "⏳ Sto cercando aggiornamenti... ☑️",
  642. },
  643. 'description': {
  644. 'en': "Get packages version and source code last commit",
  645. 'it': "Chiedi la versione dei pacchetti e del codice sorgente",
  646. },
  647. 'header': {
  648. 'en': "ℹ️ Version information #️⃣\n\n"
  649. "Last commit: <code>{last_commit}</code>",
  650. 'it': "ℹ️ Informazioni sulle versioni dei pacchetti #️⃣\n\n"
  651. "Ultimo commit: <code>{last_commit}</code>"
  652. },
  653. 'help_section': None,
  654. 'reply_keyboard_button': {
  655. 'en': "Version #️⃣",
  656. 'it': "Versione #️⃣",
  657. },
  658. },
  659. }
  660. default_authorization_messages = {
  661. 'auth_command': {
  662. 'description': {
  663. 'en': "Edit user permissions. To select a user, reply to "
  664. "a message of theirs or write their username",
  665. 'it': "Cambia il grado di autorizzazione di un utente "
  666. "(in risposta o scrivendone lo username)"
  667. },
  668. 'unhandled_case': {
  669. 'en': "<code>Unhandled case :/</code>",
  670. 'it': "<code>Caso non previsto :/</code>"
  671. },
  672. 'instructions': {
  673. 'en': "Reply with this command to a user or write "
  674. "<code>/{command} username</code> to edit their permissions.",
  675. 'it': "Usa questo comando in risposta a un utente "
  676. "oppure scrivi <code>/{command} username</code> per "
  677. "cambiarne il grado di autorizzazione."
  678. },
  679. 'unknown_user': {
  680. 'en': "Unknown user.",
  681. 'it': "Utente sconosciuto."
  682. },
  683. 'choose_user': {
  684. 'en': "{n} users match your query. Please select one.",
  685. 'it': "Ho trovato {n} utenti che soddisfano questi criteri.\n"
  686. "Per procedere selezionane uno."
  687. },
  688. 'no_match': {
  689. 'en': "No user matches your query. Please try again.",
  690. 'it': "Non ho trovato utenti che soddisfino questi criteri.\n"
  691. "Prova di nuovo."
  692. }
  693. },
  694. 'ban_command': {
  695. 'description': {
  696. 'en': "Reply to a user with /ban to ban them",
  697. 'it': "Banna l'utente (da usare in risposta)"
  698. }
  699. },
  700. 'auth_button': {
  701. 'description': {
  702. 'en': "Edit user permissions",
  703. 'it': "Cambia il grado di autorizzazione di un utente"
  704. },
  705. 'confirm': {
  706. 'en': "Are you sure?",
  707. 'it': "Sicuro sicuro?"
  708. },
  709. 'back_to_user': {
  710. 'en': "Back to user",
  711. 'it': "Torna all'utente"
  712. },
  713. 'permission_denied': {
  714. 'user': {
  715. 'en': "You cannot appoint this user!",
  716. 'it': "Non hai l'autorità di modificare i permessi di questo "
  717. "utente!"
  718. },
  719. 'role': {
  720. 'en': "You're not allowed to appoint someone to this role!",
  721. 'it': "Non hai l'autorità di conferire questo permesso!"
  722. }
  723. },
  724. 'no_change': {
  725. 'en': "No change suggested!",
  726. 'it': "È già così!"
  727. },
  728. 'appointed': {
  729. 'en': "Permission granted",
  730. 'it': "Permesso conferito"
  731. }
  732. },
  733. }
  734. default_authorization_denied_message = {
  735. 'en': "You are not allowed to use this command, sorry.",
  736. 'it': "Non disponi di autorizzazioni sufficienti per questa richiesta, spiacente.",
  737. }
  738. default_help_messages = {
  739. 'help_command': {
  740. 'header': {
  741. 'en': "<b>{bot.name} commands</b>\n\n"
  742. "{commands}",
  743. 'it': "<b>Comandi di {bot.name}</b>\n\n"
  744. "{commands}",
  745. },
  746. 'text': {
  747. 'en': "<b>Guide</b>",
  748. 'it': "<b>Guida</b>"
  749. },
  750. 'reply_keyboard_button': {
  751. 'en': "Help 📖",
  752. 'it': "Guida 📖"
  753. },
  754. 'description': {
  755. 'en': "Help",
  756. 'it': "Aiuto"
  757. },
  758. 'access_denied_message': {
  759. 'en': "Ask for authorization. If your request is accepted, send "
  760. "/help command again to read the guide.",
  761. 'it': "Chiedi di essere autorizzato: se la tua richiesta "
  762. "verrà accolta, ripeti il comando /help per leggere "
  763. "il messaggio di aiuto."
  764. },
  765. 'back_to_help_menu': {
  766. 'en': "Back to guide menu 📖",
  767. 'it': "Torna al menu Guida 📖",
  768. },
  769. },
  770. 'commands_button_label': {
  771. 'en': "Commands 🤖",
  772. 'it': "Comandi 🤖",
  773. },
  774. }
  775. default_language_messages = {
  776. 'language_command': {
  777. 'name': {
  778. 'en': "/language",
  779. 'it': "/lingua"
  780. },
  781. 'alias': {
  782. 'en': "Language 🗣",
  783. 'it': "Lingua 🗣"
  784. },
  785. 'reply_keyboard_button': {
  786. 'en': "Language 🗣",
  787. 'it': "Lingua 🗣"
  788. },
  789. 'description': {
  790. 'en': "Change language settings",
  791. 'it': "Cambia le impostazioni della lingua"
  792. }
  793. },
  794. 'language_button': {
  795. 'description': {
  796. 'en': "Change language settings",
  797. 'it': "Cambia le impostazioni della lingua"
  798. },
  799. 'language_set': {
  800. 'en': "Selected language: English 🇬🇧",
  801. 'it': "Lingua selezionata: Italiano 🇮🇹"
  802. }
  803. },
  804. 'language_panel': {
  805. 'text': {
  806. 'en': "<b>Choose a language</b>",
  807. 'it': "<b>Seleziona una lingua</b>"
  808. }
  809. }
  810. }
  811. default_suggestion_messages = {
  812. 'suggestions_command': {
  813. 'command': "/suggestion",
  814. 'aliases': [
  815. "/suggestions", "/ideas",
  816. "/suggerimento", "/suggerimenti", "idee"
  817. ],
  818. 'reply_keyboard_button': {
  819. 'en': "Ideas 💡",
  820. 'it': "Idee 💡"
  821. },
  822. 'description': {
  823. 'en': "Send a suggestion to help improve the bot",
  824. 'it': "Invia un suggerimento per aiutare a migliorare il bot"
  825. },
  826. 'prompt_text': {
  827. 'en': (
  828. "Send a suggestion to bot administrator.\n\n"
  829. "Maximum 1500 characters (extra ones will be ignored).\n"
  830. "If you need more space, you may create a telegra.ph topic and link it here.\n\n"
  831. "/cancel if you misclicked."
  832. ),
  833. 'it': (
  834. "Inserisci un suggerimento da inviare agli amministratori.\n\n"
  835. "Massimo 1500 caratteri (quelli in più non verranno registrati).\n"
  836. "Se ti serve maggiore libertà, puoi per esempio creare un topic "
  837. "su telegra.ph e linkarlo qui!\n\n"
  838. "/annulla se hai clickato per errore."
  839. ),
  840. },
  841. 'prompt_popup': {
  842. 'en': (
  843. "Send a suggestion"
  844. ),
  845. 'it': (
  846. "Inserisci un suggerimento"
  847. ),
  848. },
  849. 'entered_suggestion': {
  850. 'text': {
  851. 'en': (
  852. "Entered suggestions:\n\n"
  853. "<code>{suggestion}</code>\n\n"
  854. "Do you want to send it to bot administrators?"
  855. ),
  856. 'it': (
  857. "Suggerimento inserito:\n\n"
  858. "<code>{suggestion}</code>\n\n"
  859. "Vuoi inviarlo agli amministratori?"
  860. ),
  861. },
  862. 'buttons': {
  863. 'send': {
  864. 'en': "Send it! 📧",
  865. 'it': "Invia! 📧",
  866. },
  867. 'cancel': {
  868. 'en': "Cancel ❌",
  869. 'it': "Annulla ❌",
  870. },
  871. }
  872. },
  873. 'received_suggestion': {
  874. 'text': {
  875. 'en': (
  876. "💡 We received a new suggestion! 💡\n\n"
  877. "{user}\n\n"
  878. "<code>{suggestion}</code>\n\n"
  879. "#suggestions #{bot.name}"
  880. ),
  881. 'it': (
  882. "💡 Abbiamo ricevuto un nuovo suggerimento! 💡\n\n"
  883. "{user}\n\n"
  884. "<code>{suggestion}</code>\n\n"
  885. "#suggestions #{bot.name}"
  886. ),
  887. },
  888. 'buttons': {
  889. 'new': {
  890. 'en': "New suggestion 💡",
  891. 'it': "Nuovo suggerimento 💡",
  892. },
  893. },
  894. },
  895. 'invalid_suggestion': {
  896. 'en': "Invalid suggestion.",
  897. 'it': "Suggerimento non valido."
  898. },
  899. 'cancel_messages': {
  900. 'en': ['cancel'],
  901. 'it': ['annulla', 'cancella'],
  902. },
  903. 'operation_cancelled': {
  904. 'en': "Operation cancelled.",
  905. 'it': "Operazione annullata con successo.",
  906. },
  907. 'suggestion_sent': {
  908. 'popup': {
  909. 'en': "Thanks!",
  910. 'it': "Grazie!",
  911. },
  912. 'text': {
  913. 'en': (
  914. "💡 Suggestion sent, thank you! 💡\n\n"
  915. "<code>{suggestion}</code>\n\n"
  916. "#suggestions #{bot.name}"
  917. ),
  918. 'it': (
  919. "💡 Suggerimento inviato, grazie! 💡\n\n"
  920. "<code>{suggestion}</code>\n\n"
  921. "#suggerimenti #{bot.name}"
  922. ),
  923. },
  924. }
  925. },
  926. 'suggestions_button': {
  927. 'file_name': {
  928. 'en': "Suggestions.csv",
  929. 'it': "Suggerimenti.csv",
  930. },
  931. 'file_caption': {
  932. 'en': "Here is the suggestions file.",
  933. 'it': "Ecco il file dei suggerimenti.",
  934. }
  935. },
  936. 'see_suggestions': {
  937. 'command': "/getsuggestions",
  938. 'aliases': [
  939. "/vedisuggerimenti",
  940. ],
  941. 'description': {
  942. 'en': "Get a file containing all suggestions",
  943. 'it': "Richiedi un file con tutti i suggerimenti"
  944. },
  945. }
  946. }
  947. default_talk_messages = {
  948. 'admin_session_ended': {
  949. 'en': 'Session with user {u} ended.',
  950. 'it': 'Sessione terminata con l\'utente {u}.',
  951. },
  952. 'admin_warning': {
  953. 'en': (
  954. 'You are now talking to {u}.\n'
  955. 'Until you end this session, your messages will be '
  956. 'forwarded to each other.'
  957. ),
  958. 'it': (
  959. 'Sei ora connesso con {u}.\n'
  960. 'Finché non chiuderai la connessione, i messaggi che scriverai '
  961. 'qui saranno inoltrati a {u}, e ti inoltrerò i suoi.'
  962. ),
  963. },
  964. 'end_session': {
  965. 'en': 'End session?',
  966. 'it': 'Chiudere la sessione?',
  967. },
  968. 'help_text': {
  969. 'en': 'Press the button to search for user.',
  970. 'it': 'Premi il pulsante per scegliere un utente.',
  971. },
  972. 'search_button': {
  973. 'en': "🔍 Search for user",
  974. 'it': "🔍 Cerca utente",
  975. },
  976. 'select_user': {
  977. 'en': 'Which user would you like to talk to?',
  978. 'it': 'Con quale utente vorresti parlare?',
  979. },
  980. 'user_not_found': {
  981. 'en': (
  982. "Sory, but no user matches your query for\n"
  983. "<code>{q}</code>"
  984. ),
  985. 'it': (
  986. "Spiacente, ma nessun utente corrisponde alla ricerca per\n"
  987. "<code>{q}</code>"
  988. ),
  989. },
  990. 'instructions': {
  991. 'en': (
  992. 'Write a part of name, surname or username of the user you want '
  993. 'to talk to.'
  994. ),
  995. 'it': (
  996. 'Scrivi una parte del nome, cognome o username dell\'utente con '
  997. 'cui vuoi parlare.'
  998. ),
  999. },
  1000. 'stop': {
  1001. 'en': 'End session',
  1002. 'it': 'Termina la sessione',
  1003. },
  1004. 'user_session_ended': {
  1005. 'en': 'Session with admin {u} ended.',
  1006. 'it': 'Sessione terminata con l\'amministratore {u}.',
  1007. },
  1008. 'user_warning': {
  1009. 'en': (
  1010. '{u}, admin of this bot, wants to talk to you.\n'
  1011. 'Until this session is ended by {u}, your messages will be '
  1012. 'forwarded to each other.'
  1013. ),
  1014. 'it': (
  1015. '{u}, amministratore di questo bot, vuole parlare con te.\n'
  1016. 'Finché non chiuderà la connessione, i messaggi che scriverai '
  1017. 'qui saranno inoltrati a {u}, e ti inoltrerò i suoi.'
  1018. ),
  1019. },
  1020. }
  1021. default_unknown_command_message = {
  1022. 'en': "Unknown command! Touch /help to read the guide and available commands.",
  1023. 'it': "Comando sconosciuto! Fai /help per leggere la guida e i comandi."
  1024. }
  1025. default_useful_tools_messages = {
  1026. 'calculate_command': {
  1027. 'description': {
  1028. 'en': "Do calculations",
  1029. 'it': "Calcola",
  1030. },
  1031. 'help_section': None,
  1032. 'instructions': {
  1033. 'en': "🔢 <b>Calculator</b> 🧮\n\n"
  1034. "Enter an algebraic expression after /calc to get its "
  1035. "result, or use the command in reply to a message containing "
  1036. "an expression, or use the keyboard below.\n\n"
  1037. "- <code>ℹ️</code>: show information about special keys\n",
  1038. 'it': "🔢 <b>Calcolatrice</b> 🧮\n\n"
  1039. "Inserisci un'espressione algebrica dopo /calcola per "
  1040. "ottenerne il risultato, oppure usa il comando in risposta, "
  1041. "o ancora usa la tastiera qui sotto.\n\n"
  1042. "- <code>ℹ️</code>: mostra informazioni sui tasti speciali\n",
  1043. },
  1044. 'invalid_expression': {
  1045. 'en': "Invalid expression: {error}",
  1046. 'it': "Espressione non valida: {error}",
  1047. },
  1048. 'language_labelled_commands': {
  1049. 'en': "calculate",
  1050. 'it': "calcola",
  1051. },
  1052. 'message_input': {
  1053. 'en': "🔢 <b>Calculator</b> 🧮\n\n"
  1054. "<i>Enter an expression</i>",
  1055. 'it': "🔢 <b>Calcolatrice</b> 🧮\n\n"
  1056. "<i>Mandami l'espressione</i>",
  1057. },
  1058. 'special_keys': {
  1059. 'en': "<b>Special keys</b>\n"
  1060. "- <code>**</code>: exponentiation\n"
  1061. "- <code>//</code>: floor division\n"
  1062. "- <code>mod</code>: modulus (remainder of division)\n"
  1063. "- <code>MR</code>: result of last expression\n"
  1064. "- <code>ℹ️</code>: show this help message\n"
  1065. "- <code>💬</code>: write your expression in a message\n"
  1066. "- <code>⬅️</code>: delete last character\n"
  1067. "- <code>✅</code>: start a new line (and a new expression)\n",
  1068. 'it': "<b>Tasti speciali</b>\n"
  1069. "- <code>**</code>: elevamento a potenza\n"
  1070. "- <code>//</code>: quoziente della divisione\n"
  1071. "- <code>mod</code>: resto della divisione\n"
  1072. "- <code>MR</code>: risultato dell'espressione precedente\n"
  1073. "- <code>ℹ️</code>: mostra questo messaggio\n"
  1074. "- <code>💬</code>: invia un messaggio con l'espressione\n"
  1075. "- <code>⬅️</code>: cancella ultimo carattere\n"
  1076. "- <code>✅</code>: vai a capo (inizia una nuova espressione)\n",
  1077. },
  1078. 'use_buttons': {
  1079. 'en': "Use buttons to enter an algebraic expression.\n\n"
  1080. "<i>The input will be displayed after you stop typing for a "
  1081. "while.</i>",
  1082. 'it': "Usa i pulsanti per comporre un'espressione algebrica.\n\n"
  1083. "<i>L'espressione verrà mostrata quando smetterai di "
  1084. "digitare per un po'.</i>",
  1085. },
  1086. 'result': {
  1087. 'en': "🔢 <b>Calculator</b> 🧮\n\n"
  1088. "<i>Expressions evaluation:</i>\n\n"
  1089. "{expressions}",
  1090. 'it': "🔢 <b>Calcolatrice</b> 🧮\n\n"
  1091. "<i>Risultato delle espresisoni:</i>\n\n"
  1092. "{expressions}",
  1093. },
  1094. },
  1095. 'info_command': {
  1096. 'description': {
  1097. 'en': "Use this command in reply to get information about a message",
  1098. 'it': "Usa questo comando in risposta per ottenere informazioni "
  1099. "su un messaggio",
  1100. },
  1101. 'help_section': None,
  1102. 'instructions': {
  1103. 'en': "Use this command in reply to a message to get information "
  1104. "about it.",
  1105. 'it': "Usa questo comando in risposta per ottenere informazioni "
  1106. "su un messaggio.",
  1107. },
  1108. 'result': {
  1109. 'en': "<i>Here is the information about the selected "
  1110. "message:</i>\n\n"
  1111. "<code>{info}</code>",
  1112. 'it': "<i>Ecco le informazioni sul messaggio selezionato:</i>\n\n"
  1113. "<code>{info}</code>",
  1114. },
  1115. },
  1116. 'length_command': {
  1117. 'description': {
  1118. 'en': "Use this command in reply to a message to get its length",
  1119. 'it': "Usa questo comando in risposta a un messaggio per sapere "
  1120. "quanti caratteri contenga",
  1121. },
  1122. 'help_section': {
  1123. 'description': {
  1124. 'en': "Use the /length command in reply to a message to get "
  1125. "its length.\n"
  1126. "Beware that emojis may count as multiple characters.",
  1127. 'it': "Usa il comando /caratteri in risposta a un messaggio "
  1128. "per sapere quanti caratteri contenga.\n"
  1129. "Attenzione alle emoji, che contano come più caratteri.",
  1130. },
  1131. 'label': {
  1132. 'en': "Length #️⃣",
  1133. 'it': "Caratteri #️⃣"
  1134. },
  1135. 'name': "length",
  1136. },
  1137. 'instructions': {
  1138. 'en': "Use this command in reply to a message to get its length.",
  1139. 'it': "Usa questo comando in risposta a un messaggio per sapere "
  1140. "quanti caratteri contenga.",
  1141. },
  1142. 'language_labelled_commands': {
  1143. 'en': "length",
  1144. 'it': "caratteri",
  1145. },
  1146. 'result': {
  1147. 'en': "<i>According to my calculations, this message is "
  1148. "</i><code>{n}</code><i> characters long.</i>",
  1149. 'it': "<i>Questo messaggio contiene </i><code>{n}</code><i> "
  1150. "caratteri secondo i miei calcoli.</i>",
  1151. },
  1152. },
  1153. 'ping_command': {
  1154. 'description': {
  1155. 'en': "Check if bot is online",
  1156. 'it': "Verifica se il bot è online",
  1157. },
  1158. },
  1159. 'when_command': {
  1160. 'description': {
  1161. 'en': "Use this command in reply to get information about a message",
  1162. 'it': "Usa questo comando in risposta per ottenere informazioni "
  1163. "su un messaggio",
  1164. },
  1165. 'help_section': None,
  1166. 'forwarded_message': {
  1167. 'en': "<b>— Original message —</b>",
  1168. 'it': "<b>— Messaggio originale —</b>",
  1169. },
  1170. 'instructions': {
  1171. 'en': "Use this command in reply to a message to get its original "
  1172. "sending time.",
  1173. 'it': "Usa questo comando in risposta per ottenere l'ora di invio "
  1174. "di un messaggio.",
  1175. },
  1176. 'language_labelled_commands': {
  1177. 'en': "when",
  1178. 'it': "quando",
  1179. },
  1180. 'who_when': {
  1181. 'en': "👤 {who}\n"
  1182. "🗓 {when:%Y-%m-%d ore %H:%M:%S}",
  1183. 'it': "👤 {who}\n"
  1184. "🗓 {when:%Y-%m-%d ore %H:%M:%S}",
  1185. },
  1186. }
  1187. }