@@ -36,9 +36,9 @@ def send(update, message, keyboard, backup_message):
3636 msg = update .effective_message .reply_text (message , parse_mode = ParseMode .MARKDOWN , reply_markup = keyboard )
3737 except IndexError :
3838 msg = update .effective_message .reply_text (markdown_parser (backup_message +
39- "\n Note: the current message was "
40- "invalid due to markdown issues. Could be "
41- "due to the user's name ." ),
39+ "\n Nota: Il messaggio corrente è "
40+ "invalido a causa di problemi di markdown. Potrebbe essere a causa del "
41+ "nome dell'utente ." ),
4242 parse_mode = ParseMode .MARKDOWN )
4343 except KeyError :
4444 msg = update .effective_message .reply_text (markdown_parser (backup_message +
@@ -49,27 +49,27 @@ def send(update, message, keyboard, backup_message):
4949 except BadRequest as excp :
5050 if excp .message == "Button_url_invalid" :
5151 msg = update .effective_message .reply_text (markdown_parser (backup_message +
52- "\n Note: the current message has an invalid url "
53- "in one of its buttons. Please update ." ),
52+ "\n Nota: Il messaggio corrente ha un url non valido "
53+ "in uno dei bottoni. Per favore, aggiornarlo ." ),
5454 parse_mode = ParseMode .MARKDOWN )
5555 elif excp .message == "Unsupported url protocol" :
5656 msg = update .effective_message .reply_text (markdown_parser (backup_message +
57- "\n Note: the current message has buttons which "
58- "use url protocols that are unsupported by "
59- "telegram. Please update ." ),
57+ "\n Nota: il messaggio corrente ha bottoni che "
58+ "usano un protocollo per gli url non supportato da "
59+ "Telegram. Per favore, aggiornarlo ." ),
6060 parse_mode = ParseMode .MARKDOWN )
6161 elif excp .message == "Wrong url host" :
6262 msg = update .effective_message .reply_text (markdown_parser (backup_message +
63- "\n Note: the current message has some bad urls . "
64- "Please update ." ),
63+ "\n Nota: il messaggio corrente ha degli url difettosi . "
64+ "Per favore, aggiornarlo. ." ),
6565 parse_mode = ParseMode .MARKDOWN )
6666 LOGGER .warning (message )
6767 LOGGER .warning (keyboard )
68- LOGGER .exception ("Could not parse! got invalid url host errors " )
68+ LOGGER .exception ("Impossibile parsarlo! Ci sono degli url non validi. " )
6969 else :
7070 msg = update .effective_message .reply_text (markdown_parser (backup_message +
71- "\n Note: An error occured when sending the "
72- "custom message. Please update ." ),
71+ "\n Nota: un errore si è verificato quando ho provato "
72+ "a inviare il messaggio customizzato. Per favore, risolvere l'errore ." ),
7373 parse_mode = ParseMode .MARKDOWN )
7474 LOGGER .exception ()
7575
@@ -87,7 +87,7 @@ def new_member(bot: Bot, update: Update):
8787 for new_mem in new_members :
8888 # Give the owner a special welcome
8989 if new_mem .id == OWNER_ID :
90- update .effective_message .reply_text ("Master is in the houseeee, let's get this party started !" )
90+ update .effective_message .reply_text ("È arrivato il capooooo, diamo il via alla festa !" )
9191 continue
9292
9393 # Don't welcome yourself
@@ -204,8 +204,8 @@ def welcome(bot: Bot, update: Update, args: List[str]):
204204 noformat = args and args [0 ].lower () == "noformat"
205205 pref , welcome_m , welcome_type = sql .get_welc_pref (chat .id )
206206 update .effective_message .reply_text (
207- "This chat has it's welcome setting set to : `{}`.\n *The welcome message "
208- "(not filling the {{}}) is :*" .format (pref ),
207+ "Il messaggio di benvenuto personalizzato è impostato a : `{}`.\n *Il messaggio di benvenuto "
208+ "(senza le variabili in {{}}) è :*" .format (pref ),
209209 parse_mode = ParseMode .MARKDOWN )
210210
211211 if welcome_type == sql .Types .BUTTON_TEXT :
@@ -230,15 +230,15 @@ def welcome(bot: Bot, update: Update, args: List[str]):
230230 elif len (args ) >= 1 :
231231 if args [0 ].lower () in ("on" , "yes" ):
232232 sql .set_welc_preference (str (chat .id ), True )
233- update .effective_message .reply_text ("I'll be polite !" )
233+ update .effective_message .reply_text ("Farò il bravo !" )
234234
235235 elif args [0 ].lower () in ("off" , "no" ):
236236 sql .set_welc_preference (str (chat .id ), False )
237- update .effective_message .reply_text ("I'm sulking, not saying hello anymore. " )
237+ update .effective_message .reply_text ("Mi sono offeso, non saluterò più! " )
238238
239239 else :
240240 # idek what you're writing, say yes or no
241- update .effective_message .reply_text ("I understand 'on/yes' or 'off/no' only !" )
241+ update .effective_message .reply_text ("Capisco solo 'on/yes' o 'off/no'!" )
242242
243243
244244@run_async
@@ -250,8 +250,8 @@ def goodbye(bot: Bot, update: Update, args: List[str]):
250250 noformat = args and args [0 ] == "noformat"
251251 pref , goodbye_m , goodbye_type = sql .get_gdbye_pref (chat .id )
252252 update .effective_message .reply_text (
253- "This chat has it's goodbye setting set to : `{}`.\n *The goodbye message "
254- "(not filling the {{}}) is :*" .format (pref ),
253+ "Il messaggio di goodbye è impostato a : `{}`.\n *Il messaggio "
254+ "(senza le variabili in {{}}) è :*" .format (pref ),
255255 parse_mode = ParseMode .MARKDOWN )
256256
257257 if goodbye_type == sql .Types .BUTTON_TEXT :
@@ -276,15 +276,15 @@ def goodbye(bot: Bot, update: Update, args: List[str]):
276276 elif len (args ) >= 1 :
277277 if args [0 ].lower () in ("on" , "yes" ):
278278 sql .set_gdbye_preference (str (chat .id ), True )
279- update .effective_message .reply_text ("I'll be sorry when people leave !" )
279+ update .effective_message .reply_text ("Mi dispiacerà quando le persone se ne andranno !" )
280280
281281 elif args [0 ].lower () in ("off" , "no" ):
282282 sql .set_gdbye_preference (str (chat .id ), False )
283- update .effective_message .reply_text ("They leave, they're dead to me." )
283+ update .effective_message .reply_text ("Se ne vanno? Saranno morte per me." )
284284
285285 else :
286286 # idek what you're writing, say yes or no
287- update .effective_message .reply_text ("I understand 'on/yes' or 'off/no' only !" )
287+ update .effective_message .reply_text ("Capisco solo 'on/yes' o 'off/no'!" )
288288
289289
290290@run_async
@@ -298,11 +298,11 @@ def set_welcome(bot: Bot, update: Update) -> str:
298298 text , data_type , content , buttons = get_welcome_type (msg )
299299
300300 if data_type is None :
301- msg .reply_text ("You didn't specify what to reply with !" )
301+ msg .reply_text ("Non hai specificato come devo rispondere !" )
302302 return ""
303303
304304 sql .set_custom_welcome (chat .id , content or text , data_type , buttons )
305- msg .reply_text ("Successfully set custom welcome message !" )
305+ msg .reply_text ("Ho impostato correttamente il messaggio di benvenuto !" )
306306
307307 return "<b>{}:</b>" \
308308 "\n #SET_WELCOME" \
@@ -318,7 +318,7 @@ def reset_welcome(bot: Bot, update: Update) -> str:
318318 chat = update .effective_chat # type: Optional[Chat]
319319 user = update .effective_user # type: Optional[User]
320320 sql .set_custom_welcome (chat .id , sql .DEFAULT_WELCOME , sql .Types .TEXT )
321- update .effective_message .reply_text ("Successfully reset welcome message to default !" )
321+ update .effective_message .reply_text ("Ho resettato il messaggio di benvenuto a quello di defualt !" )
322322 return "<b>{}:</b>" \
323323 "\n #RESET_WELCOME" \
324324 "\n <b>Admin:</b> {}" \
@@ -336,11 +336,11 @@ def set_goodbye(bot: Bot, update: Update) -> str:
336336 text , data_type , content , buttons = get_welcome_type (msg )
337337
338338 if data_type is None :
339- msg .reply_text ("You didn't specify what to reply with !" )
339+ msg .reply_text ("Non hai specificato come devo rispondere !" )
340340 return ""
341341
342342 sql .set_custom_gdbye (chat .id , content or text , data_type , buttons )
343- msg .reply_text ("Successfully set custom goodbye message !" )
343+ msg .reply_text ("Ho impostato con successo il messaggio di goodbye !" )
344344 return "<b>{}:</b>" \
345345 "\n #SET_GOODBYE" \
346346 "\n <b>Admin:</b> {}" \
@@ -355,7 +355,7 @@ def reset_goodbye(bot: Bot, update: Update) -> str:
355355 chat = update .effective_chat # type: Optional[Chat]
356356 user = update .effective_user # type: Optional[User]
357357 sql .set_custom_gdbye (chat .id , sql .DEFAULT_GOODBYE , sql .Types .TEXT )
358- update .effective_message .reply_text ("Successfully reset goodbye message to default !" )
358+ update .effective_message .reply_text ("Ho ripristinato con successo il messaggio di goodbye !" )
359359 return "<b>{}:</b>" \
360360 "\n #RESET_GOODBYE" \
361361 "\n <b>Admin:</b> {}" \
@@ -373,30 +373,30 @@ def clean_welcome(bot: Bot, update: Update, args: List[str]) -> str:
373373 if not args :
374374 clean_pref = sql .get_clean_pref (chat .id )
375375 if clean_pref :
376- update .effective_message .reply_text ("I should be deleting welcome messages up to two days old ." )
376+ update .effective_message .reply_text ("Dovrei eliminare i messaggi di benvenuto fino a due giorni ." )
377377 else :
378- update .effective_message .reply_text ("I'm currently not deleting old welcome messages !" )
378+ update .effective_message .reply_text ("Al momento non posso eliminare i vecchi messaggi di benvenuto !" )
379379 return ""
380380
381381 if args [0 ].lower () in ("on" , "yes" ):
382382 sql .set_clean_welcome (str (chat .id ), True )
383- update .effective_message .reply_text ("I'll try to delete old welcome messages !" )
383+ update .effective_message .reply_text ("Proverò a cancellare i vecchi messaggi di benvenuto !" )
384384 return "<b>{}:</b>" \
385385 "\n #CLEAN_WELCOME" \
386386 "\n <b>Admin:</b> {}" \
387387 "\n Has toggled clean welcomes to <code>ON</code>." .format (html .escape (chat .title ),
388388 mention_html (user .id , user .first_name ))
389389 elif args [0 ].lower () in ("off" , "no" ):
390390 sql .set_clean_welcome (str (chat .id ), False )
391- update .effective_message .reply_text ("I won't delete old welcome messages ." )
391+ update .effective_message .reply_text ("Non posso cancellare i vecchi messaggi di benvenuto ." )
392392 return "<b>{}:</b>" \
393393 "\n #CLEAN_WELCOME" \
394394 "\n <b>Admin:</b> {}" \
395395 "\n Has toggled clean welcomes to <code>OFF</code>." .format (html .escape (chat .title ),
396396 mention_html (user .id , user .first_name ))
397397 else :
398398 # idek what you're writing, say yes or no
399- update .effective_message .reply_text ("I understand 'on/yes' or 'off/no' only !" )
399+ update .effective_message .reply_text ("Capisco solo 'on/yes' o 'off/no'!" )
400400 return ""
401401
402402
@@ -450,8 +450,8 @@ def __migrate__(old_chat_id, new_chat_id):
450450def __chat_settings__ (chat_id , user_id ):
451451 welcome_pref , _ , _ = sql .get_welc_pref (chat_id )
452452 goodbye_pref , _ , _ = sql .get_gdbye_pref (chat_id )
453- return "This chat has it's welcome preference set to `{}`.\n " \
454- "It's goodbye preference is `{}`." .format (welcome_pref , goodbye_pref )
453+ return "Questa chat ha la sua preferenza di benvenuto su `{}`.\n " \
454+ "Le preferenze di goodbye sono `{}`." .format (welcome_pref , goodbye_pref )
455455
456456
457457__help__ = """
0 commit comments