@@ -47,11 +47,11 @@ def ban(bot: Bot, update: Update, args: List[str]) -> str:
4747 raise
4848
4949 if is_user_ban_protected (chat , user_id , member ):
50- message .reply_text ("A volte mi piacerebbe tanto poter bannare gli admin.. ." )
50+ message .reply_text ("Impossibile rimuovere gli altri admin." )
5151 return ""
5252
5353 if user_id == bot .id :
54- message .reply_text ("Di sicuro non mi bannero' da solo.. sei pazzo? " )
54+ message .reply_text ("Di sicuro non mi bannero' da solo." )
5555 return ""
5656
5757 log = (
@@ -70,14 +70,14 @@ def ban(bot: Bot, update: Update, args: List[str]) -> str:
7070
7171 try :
7272 chat .kick_member (user_id )
73- bot .send_sticker (chat .id , BAN_STICKER ) # banhammer marie sticker
74- message .reply_text ("BANNATO! " )
73+ # bot.send_sticker(chat.id, BAN_STICKER) # banhammer sticker
74+ message .reply_text ("Utente rimosso. " )
7575 return log
7676
7777 except BadRequest as excp :
7878 if excp .message == "Reply message not found" :
7979 # Do not reply
80- message .reply_text ("BANNATO! " , quote = False )
80+ message .reply_text ("Utente rimosso. " , quote = False )
8181 return log
8282 else :
8383 LOGGER .warning (update )
@@ -88,7 +88,7 @@ def ban(bot: Bot, update: Update, args: List[str]) -> str:
8888 chat .id ,
8989 excp .message ,
9090 )
91- message .reply_text ("Diamine, non riesco a bannare questo utente ." )
91+ message .reply_text ("Impossibile rimuovere questo membro ." )
9292
9393 return ""
9494
@@ -119,11 +119,11 @@ def temp_ban(bot: Bot, update: Update, args: List[str]) -> str:
119119 raise
120120
121121 if is_user_ban_protected (chat , user_id , member ):
122- message .reply_text ("A volte mi piacerebbe tanto poter bannare gli admin.. ." )
122+ message .reply_text ("Impossibile rimuovere gli altri admin." )
123123 return ""
124124
125125 if user_id == bot .id :
126- message .reply_text ("Di sicuro non mi bannero' da solo.. sei pazzo? " )
126+ message .reply_text ("Di sicuro non mi bannero' da solo." )
127127 return ""
128128
129129 if not reason :
@@ -164,14 +164,14 @@ def temp_ban(bot: Bot, update: Update, args: List[str]) -> str:
164164 try :
165165 chat .kick_member (user_id , until_date = bantime )
166166 bot .send_sticker (chat .id , BAN_STICKER ) # banhammer marie sticker
167- message .reply_text ("BANNATO! L'utente verra' bannato per {}." .format (time_val ))
167+ message .reply_text ("L'utente verra' bannato per {}." .format (time_val ))
168168 return log
169169
170170 except BadRequest as excp :
171171 if excp .message == "Reply message not found" :
172172 # Do not reply
173173 message .reply_text (
174- "BANNATO! L'utente verra' bannato per {}." .format (time_val ), quote = False
174+ "L'utente verra' bannato per {}." .format (time_val ), quote = False
175175 )
176176 return log
177177 else :
@@ -183,7 +183,7 @@ def temp_ban(bot: Bot, update: Update, args: List[str]) -> str:
183183 chat .id ,
184184 excp .message ,
185185 )
186- message .reply_text ("Diamine, non riesco a bannare questo utente." )
186+ message .reply_text ("Impossibile bannare questo utente." )
187187
188188 return ""
189189
@@ -214,7 +214,7 @@ def kick(bot: Bot, update: Update, args: List[str]) -> str:
214214
215215 if is_user_ban_protected (chat , user_id ):
216216 message .reply_text (
217- "Non hai idea di quanto mi piacerebbe poter kickare gli admins.. ."
217+ "Impossibile rimuovere gli admin ."
218218 )
219219 return ""
220220
@@ -299,7 +299,7 @@ def unban(bot: Bot, update: Update, args: List[str]) -> str:
299299 return ""
300300
301301 chat .unban_member (user_id )
302- message .reply_text ("Yep, questo utente può tornare tra noi!" )
302+ message .reply_text ("Questo utente può tornare tra noi!" )
303303
304304 log = (
305305 "<b>{}:</b>"
0 commit comments