diff --git a/api1.py b/api1.py index 6669cef..b0a5cfc 100644 --- a/api1.py +++ b/api1.py @@ -26,7 +26,7 @@ class Config(object): SCHEDULER_API_ENABLED = True -def sendSelfTelegram(text): +def sendSelfTelegram(message): print(f"sending telegram message to myself") # get your api_id, api_hash, token # from telegram as described above @@ -53,7 +53,7 @@ def sendSelfTelegram(text): client.sign_in(phone, input('Enter the code: ')) try: schlingelId=5070349790 - client.send_message(schlingelId, "test message", parse_mode='html') + client.send_message(schlingelId, message, parse_mode='html') except Exception as e: # there may be many error coming in while like peer # error, wwrong access_hash, flood_error, etc @@ -74,7 +74,7 @@ def sendMail(topic,toAddr): https://deadswitch.kawomi.com/api/v1?topic={topic} """ - sendSelfTelegram(message) + #sendSelfTelegram(message) server.sendmail(sender_email, receiver_email, message) def expiryCheck(): diff --git a/session.session b/session.session index 5cbde98..2655107 100644 Binary files a/session.session and b/session.session differ