From f68a869309f4fc5bacf2713163909519e2743bf4 Mon Sep 17 00:00:00 2001
From: git-sid <25916907+git-sid@users.noreply.github.com>
Date: Sun, 9 Sep 2018 17:47:38 +0200
Subject: [PATCH] added message type filtering -> only text messages get
 crawled

---
 active_bots/telegrambot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/active_bots/telegrambot.py b/active_bots/telegrambot.py
index 637b332..e5db44e 100644
--- a/active_bots/telegrambot.py
+++ b/active_bots/telegrambot.py
@@ -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: