From b12dcf3ff5cf4a1d435cfe77a44b1ad438f8fcf8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 12 Mar 2017 19:11:44 +0100 Subject: [PATCH] Missed 2! --- basicbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basicbot.py b/basicbot.py index 338f6236..282fb38b 100644 --- a/basicbot.py +++ b/basicbot.py @@ -42,7 +42,7 @@ Sintassi: `/diario `""" file.write(f"{int(time)}|{entry}\n") file.close() del file - await update.message.chat.send_message(bot, "Aggiunto al diario!") + await update.message.reply(bot, "Aggiunto al diario!") async def leggi(bot, update, arguments): @@ -149,7 +149,7 @@ async def changepassword(bot, update, arguments): Sintassi: `/changepassword `""" if len(arguments) != 2: - await update.message.chat.send_message(bot, "⚠ Sintassi del comando non valida.\n`/changepassword `") + await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/changepassword `") return # TODO: this can be improved, maybe? logged_user = currently_logged_in(update)