completed telegram subscriber list functionality

master
sid 2018-06-30 21:32:22 +02:00 committed by GitHub
parent c9b5fd1d5c
commit 0cf8705d2d
1 changed files with 6 additions and 2 deletions

View File

@ -13,8 +13,12 @@ class TelegramBot(Bot):
updates = tb.get_updates().wait()
reports = []
for update in updates:
reports.append(Report(update.message.from.username,self,
update.message.text,None,update.message.date))
if update.message.text =="/stop":
remove_telegram_subscribers(self, update.message.from.id)
else:
add_telegram_subscribers(self, update.message.from.id)
reports.append(Report(update.message.from.username,self,
update.message.text,None,update.message.date))
return reports
def post(self, user, report):