From 60876e92b2b31412846d32fdca5441275291940e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 10 Mar 2017 15:52:26 +0100 Subject: [PATCH] Added bot started message. --- basicbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basicbot.py b/basicbot.py index 0972fef5..d84cd5c6 100644 --- a/basicbot.py +++ b/basicbot.py @@ -14,7 +14,7 @@ b = telegram.Bot(royalbotconfig.telegram_token) def currently_logged_in(update): - """Find the database user which sent the update.""" + """Trova l'utente connesso all'account di Telegram che ha mandato l'update.""" session = database.Session() user = session.query(database.User).filter_by(telegram_id=update.message.sent_from.user_id).first() return user @@ -168,4 +168,5 @@ if __name__ == "__main__": b.commands["sync"] = sync b.commands["changepassword"] = changepassword b.commands["help"] = help + print("Bot started!") b.run() \ No newline at end of file