Initial attempt at telegram notifications

This commit is contained in:
David Taylor
2015-08-17 23:21:45 +01:00
committed by Tom Price
parent e286d8bdee
commit b963beeded
7 changed files with 105 additions and 0 deletions

13
temp.py Normal file
View File

@@ -0,0 +1,13 @@
from telegram_interface import models
# man = models.TelegramManager(token="135462350:AAEhnE-Nd90fQIYM988H3rfUKVsT2MI24_A")
# man.save()
man = models.TelegramManager.objects.all()[0]
man.lookupUpdates()
man.broadcastMessage("THIS IS A BROADCAST, CAN YOU HEAR ME?")
exit()