Skip to content

Commit 9e1f3ae

Browse files
author
Pablo Chinea
committed
Fixes error when a message has no text (telegram info messages).
1 parent 522c0a8 commit 9e1f3ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def reply(update, context):
7676
return
7777

7878
msg = update.message.text
79-
reply_spec = utils.triggers_reply(msg)
79+
reply_spec = utils.triggers_reply(msg) if msg else None
8080
if reply_spec is not None:
8181
logger.info(f'bot sends reply {reply_spec.reply}')
8282
context.bot.send_message(

0 commit comments

Comments
 (0)