Removing duplicate telegram message
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user