Queer European MD passionate about IT

messages.py 45 KB

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