Skip to content

Commit 79ad2f2

Browse files
authored
Merge pull request #15 from Kavuti/MattiaFailla-patch-2
Traduzione modulo users
2 parents 13a030f + a3a695a commit 79ad2f2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tg_bot/modules/users.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ def broadcast(bot: Bot, update: Update):
5959
sleep(0.1)
6060
except TelegramError:
6161
failed += 1
62-
LOGGER.warning("Couldn't send broadcast to %s, group name %s", str(chat.chat_id), str(chat.chat_name))
62+
LOGGER.warning("Impossibile inviare messaggio broadcast a %s gruppi/o. Nome dei gruppi/o: %s", str(chat.chat_id), str(chat.chat_name))
6363

64-
update.effective_message.reply_text("Broadcast complete. {} groups failed to receive the message, probably "
65-
"due to being kicked.".format(failed))
64+
update.effective_message.reply_text("Broadcast completato. {} gruppi non hanno ricevuto il messaggio, probabilmente "
65+
"perchè sono stato kickato.".format(failed))
6666

6767

6868
@run_async
@@ -96,14 +96,14 @@ def chats(bot: Bot, update: Update):
9696
with BytesIO(str.encode(chatfile)) as output:
9797
output.name = "chatlist.txt"
9898
update.effective_message.reply_document(document=output, filename="chatlist.txt",
99-
caption="Here is the list of chats in my database.")
99+
caption="Lista di chat nel mio db.")
100100

101101

102102
def __user_info__(user_id):
103103
if user_id == dispatcher.bot.id:
104-
return """I've seen them in... Wow. Are they stalking me? They're in all the same places I am... oh. It's me."""
104+
return """L'ho visto in.. wow. In tutte le chat! Ah.. sono io!."""
105105
num_chats = sql.get_user_num_chats(user_id)
106-
return """I've seen them in <code>{}</code> chats in total.""".format(num_chats)
106+
return """L'ho visto in <code>{}</code> chats in totale.""".format(num_chats)
107107

108108

109109
def __stats__():

0 commit comments

Comments
 (0)