added message type filtering -> only text messages get crawled

This commit is contained in:
git-sid 2018-09-09 17:47:38 +02:00
parent a0bd5e69e1
commit f68a869309

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: