added message type filtering -> only text messages get crawled
This commit is contained in:
parent
a0bd5e69e1
commit
f68a869309
|
@ -11,7 +11,7 @@ class TelegramBot(Bot):
|
||||||
def crawl(self, user):
|
def crawl(self, user):
|
||||||
tb = Telegram(user.get_telegram_credentials())
|
tb = Telegram(user.get_telegram_credentials())
|
||||||
seen_tg = user.get_seen_tg()
|
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 = []
|
reports = []
|
||||||
for update in updates:
|
for update in updates:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue