Empty text message return empty string instead None #30

This commit is contained in:
Leandro Toledo 2015-08-11 10:48:29 -03:00
parent 258b4a20ae
commit 6b714bc805

View file

@ -103,7 +103,7 @@ class Message(TelegramObject):
if 'text' in data: if 'text' in data:
text = data['text'] text = data['text']
else: else:
text = None text = ''
if 'audio' in data: if 'audio' in data:
from telegram import Audio from telegram import Audio