added message type filtering -> only text messages get crawled

master
git-sid 2018-09-09 17:47:38 +02:00
parent 378e11bf59
commit 90ca3a8fa2
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class TelegramBot(Bot):
def crawl(self, user):
tb = Telegram(user.get_telegram_credentials())
seen_tg = user.get_seen_tg()
updates = tb.get_updates(offset=seen_tg+1).wait()
updates = tb.get_updates(offset=seen_tg+1, allowed_updates="message").wait()
reports = []
for update in updates:
try: