Queer European MD passionate about IT

messages.py 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. """Default messages for bot functions."""
  2. default_help_messages = {
  3. 'help_command': {
  4. 'header': {
  5. 'en': "<b>{bot.name} commands</b>\n\n"
  6. "{commands}",
  7. 'it': "<b>Comandi di {bot.name}</b>\n\n"
  8. "{commands}",
  9. },
  10. 'text': {
  11. 'en': "<b>Guide</b>",
  12. 'it': "<b>Guida</b>"
  13. },
  14. 'reply_keyboard_button': {
  15. 'en': "Help 📖",
  16. 'it': "Guida 📖"
  17. },
  18. 'description': {
  19. 'en': "Help",
  20. 'it': "Aiuto"
  21. },
  22. 'access_denied_message': {
  23. 'en': "Ask for authorization. If your request is accepted, send "
  24. "/help command again to read the guide.",
  25. 'it': "Chiedi di essere autorizzato: se la tua richiesta "
  26. "verrà accolta, ripeti il comando /help per leggere "
  27. "il messaggio di aiuto."
  28. },
  29. 'back_to_help_menu': {
  30. 'en': "Back to guide menu 📖",
  31. 'it': "Torna al menu Guida 📖",
  32. },
  33. },
  34. 'commands_button_label': {
  35. 'en': "Commands 🤖",
  36. 'it': "Comandi 🤖",
  37. },
  38. }
  39. default_suggestion_messages = {
  40. 'suggestions_command': {
  41. 'command': "/suggestion",
  42. 'aliases': [
  43. "/suggestions", "/ideas",
  44. "/suggerimento", "/suggerimenti", "idee"
  45. ],
  46. 'reply_keyboard_button': {
  47. 'en': "Ideas 💡",
  48. 'it': "Idee 💡"
  49. },
  50. 'description': {
  51. 'en': "Send a suggestion to help improve the bot",
  52. 'it': "Invia un suggerimento per aiutare a migliorare il bot"
  53. },
  54. 'prompt_text': {
  55. 'en': (
  56. "Send a suggestion to bot administrator.\n\n"
  57. "Maximum 1500 characters (extra ones will be ignored).\n"
  58. "If you need more space, you may create a telegra.ph topic and link it here.\n\n"
  59. "/cancel if you misclicked."
  60. ),
  61. 'it': (
  62. "Inserisci un suggerimento da inviare agli amministratori.\n\n"
  63. "Massimo 1500 caratteri (quelli in più non verranno registrati).\n"
  64. "Se ti serve maggiore libertà, puoi per esempio creare un topic "
  65. "su telegra.ph e linkarlo qui!\n\n"
  66. "/annulla se hai clickato per errore."
  67. ),
  68. },
  69. 'prompt_popup': {
  70. 'en': (
  71. "Send a suggestion"
  72. ),
  73. 'it': (
  74. "Inserisci un suggerimento"
  75. ),
  76. },
  77. 'entered_suggestion': {
  78. 'text': {
  79. 'en': (
  80. "Entered suggestions:\n\n"
  81. "<code>{suggestion}</code>\n\n"
  82. "Do you want to send it to bot administrators?"
  83. ),
  84. 'it': (
  85. "Suggerimento inserito:\n\n"
  86. "<code>{suggestion}</code>\n\n"
  87. "Vuoi inviarlo agli amministratori?"
  88. ),
  89. },
  90. 'buttons': {
  91. 'send': {
  92. 'en': "Send it! 📧",
  93. 'it': "Invia! 📧",
  94. },
  95. 'cancel': {
  96. 'en': "Cancel ❌",
  97. 'it': "Annulla ❌",
  98. },
  99. }
  100. },
  101. 'received_suggestion': {
  102. 'text': {
  103. 'en': (
  104. "💡 We received a new suggestion! 💡\n\n"
  105. "{user}\n\n"
  106. "<code>{suggestion}</code>\n\n"
  107. "#suggestions #{bot.name}"
  108. ),
  109. 'it': (
  110. "💡 Abbiamo ricevuto un nuovo suggerimento! 💡\n\n"
  111. "{user}\n\n"
  112. "<code>{suggestion}</code>\n\n"
  113. "#suggestions #{bot.name}"
  114. ),
  115. },
  116. 'buttons': {
  117. 'new': {
  118. 'en': "New suggestion 💡",
  119. 'it': "Nuovo suggerimento 💡",
  120. },
  121. },
  122. },
  123. 'invalid_suggestion': {
  124. 'en': "Invalid suggestion.",
  125. 'it': "Suggerimento non valido."
  126. },
  127. 'cancel_messages': {
  128. 'en': ['cancel'],
  129. 'it': ['annulla', 'cancella'],
  130. },
  131. 'operation_cancelled': {
  132. 'en': "Operation cancelled.",
  133. 'it': "Operazione annullata con successo.",
  134. },
  135. 'suggestion_sent': {
  136. 'popup': {
  137. 'en': "Thanks!",
  138. 'it': "Grazie!",
  139. },
  140. 'text': {
  141. 'en': (
  142. "💡 Suggestion sent, thank you! 💡\n\n"
  143. "<code>{suggestion}</code>\n\n"
  144. "#suggestions #{bot.name}"
  145. ),
  146. 'it': (
  147. "💡 Suggerimento inviato, grazie! 💡\n\n"
  148. "<code>{suggestion}</code>\n\n"
  149. "#suggerimenti #{bot.name}"
  150. ),
  151. },
  152. }
  153. },
  154. 'suggestions_button': {
  155. 'file_name': {
  156. 'en': "Suggestions.csv",
  157. 'it': "Suggerimenti.csv",
  158. },
  159. 'file_caption': {
  160. 'en': "Here is the suggestions file.",
  161. 'it': "Ecco il file dei suggerimenti.",
  162. }
  163. },
  164. 'see_suggestions': {
  165. 'command': "/getsuggestions",
  166. 'aliases': [
  167. "/vedisuggerimenti",
  168. ],
  169. 'description': {
  170. 'en': "Get a file containing all suggestions",
  171. 'it': "Richiedi un file con tutti i suggerimenti"
  172. },
  173. }
  174. }