From 8d62ff9e7183d594d5a12a8481b40f3d077a2976 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Fri, 17 May 2019 20:43:03 +0530 Subject: [PATCH] Send test message with telegram. --- installation.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/installation.py b/installation.py index 2878d23..7959a1d 100755 --- a/installation.py +++ b/installation.py @@ -56,6 +56,13 @@ if tg_enable: config["telegram"]["bot_token"] = input("> ") print("\nEnter userid\n") config["telegram"]["user_id"] = get_number("> ") + print("\nAttempting to send a test message") + from backends import telegram + telegram.send(config["telegram"], "Test Message from The Long Night") + print(""" +Message sent, if you did not recieve a message, check the bot_token and +user_id. Also, ensure that you have started the bot. +""") print("\nStoring config.") with open('config.json', 'w') as f: