Skip to content

Commit 4333056

Browse files
committed
Traduzione sub-modulo chat_status
1 parent b9fdc03 commit 4333056

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

tg_bot/modules/helper_funcs/chat_status.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ def is_user_in_chat(chat: Chat, user_id: int) -> bool:
5151
def bot_can_delete(func):
5252
@wraps(func)
5353
def delete_rights(bot: Bot, update: Update, *args, **kwargs):
54-
if can_delete(update.effective_chat, bot.id):
55-
return func(bot, update, *args, **kwargs)
56-
else:
57-
update.effective_message.reply_text("I can't delete messages here! "
58-
"Make sure I'm admin and can delete other user's messages.")
54+
if can_delete(update.effective_chat, bot.id):
55+
return func(bot, update, *args, **kwargs)
56+
else:
57+
update.effective_message.reply_text("Non posso cancellare i messaggi qui! "
58+
"Assicurati di avermi fatto admin.")
5959

6060
return delete_rights
6161

@@ -66,8 +66,8 @@ def pin_rights(bot: Bot, update: Update, *args, **kwargs):
6666
if update.effective_chat.get_member(bot.id).can_pin_messages:
6767
return func(bot, update, *args, **kwargs)
6868
else:
69-
update.effective_message.reply_text("I can't pin messages here! "
70-
"Make sure I'm admin and can pin messages.")
69+
update.effective_message.reply_text("NOn posso pinnare i messaggi! "
70+
"Assicurati di avermi fatto admin.")
7171

7272
return pin_rights
7373

@@ -78,8 +78,8 @@ def promote_rights(bot: Bot, update: Update, *args, **kwargs):
7878
if update.effective_chat.get_member(bot.id).can_promote_members:
7979
return func(bot, update, *args, **kwargs)
8080
else:
81-
update.effective_message.reply_text("I can't promote/demote people here! "
82-
"Make sure I'm admin and can appoint new admins.")
81+
update.effective_message.reply_text("Non posso promuovere le persone qui! "
82+
"Assicurati di avermi fatto admin.")
8383

8484
return promote_rights
8585

@@ -90,8 +90,8 @@ def promote_rights(bot: Bot, update: Update, *args, **kwargs):
9090
if update.effective_chat.get_member(bot.id).can_restrict_members:
9191
return func(bot, update, *args, **kwargs)
9292
else:
93-
update.effective_message.reply_text("I can't restrict people here! "
94-
"Make sure I'm admin and can appoint new admins.")
93+
update.effective_message.reply_text("Non posso eseguire queste operazioni qui! "
94+
"Assicurati di avermi fatto admin.")
9595

9696
return promote_rights
9797

@@ -102,7 +102,7 @@ def is_admin(bot: Bot, update: Update, *args, **kwargs):
102102
if is_bot_admin(update.effective_chat, bot.id):
103103
return func(bot, update, *args, **kwargs)
104104
else:
105-
update.effective_message.reply_text("I'm not admin!")
105+
update.effective_message.reply_text("Non sono admin!")
106106

107107
return is_admin
108108

@@ -121,7 +121,7 @@ def is_admin(bot: Bot, update: Update, *args, **kwargs):
121121
update.effective_message.delete()
122122

123123
else:
124-
update.effective_message.reply_text("Who dis non-admin telling me what to do?")
124+
update.effective_message.reply_text("Non sei admin e non puoi eseguire questo comando :)")
125125

126126
return is_admin
127127

0 commit comments

Comments
 (0)