Removing duplicate telegram message
This commit is contained in:
parent
3dad914171
commit
fd89bf42c4
3
main.py
3
main.py
|
@ -56,9 +56,6 @@ def runPings():
|
||||||
resTuple = (website['website_id'], True, statusCode)
|
resTuple = (website['website_id'], True, statusCode)
|
||||||
else:
|
else:
|
||||||
resTuple = (website['website_id'], False, statusCode)
|
resTuple = (website['website_id'], False, statusCode)
|
||||||
telegram.sendMessage(users[website['admin_id']]['telegram_id'], (
|
|
||||||
'Your website {} ({}) is not reachable at the moment (Code {}). Maybe give it a check.'
|
|
||||||
).format(website['name'], website['url'], statusCode))
|
|
||||||
websitePingResults.append(resTuple)
|
websitePingResults.append(resTuple)
|
||||||
|
|
||||||
# Send Telegram message if state has changed
|
# Send Telegram message if state has changed
|
||||||
|
|
Loading…
Reference in New Issue
Block a user