aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2017-06-22 15:01:27 +0200
committerRahiel Kasim <rahielkasim@gmail.com>2017-06-22 15:01:27 +0200
commitd9d18eaf3eb8e8d59118a63e1f388921dff5a64c (patch)
treeb5a4f4e7c4715dd7f2d1cdf0e1eaece1908d1805
parentfef1e97899814ea20362ad3ec22eecf352d472a1 (diff)
handle update messages without text
-rw-r--r--bismillah.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bismillah.py b/bismillah.py
index 39b2758..db344f8 100644
--- a/bismillah.py
+++ b/bismillah.py
@@ -202,7 +202,7 @@ def serve(bot, data):
bot.answer_inline_query(inline_query_id=query_id, cache_time=cache_time, results=results)
continue
- if not update.message: # weird Telegram update with only an update_id
+ if not update.message or not update.message.text: # updates without text
continue
chat_id = update.message.chat_id