mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-18 15:20:42 +01:00
Empty text message return empty string instead None #30
This commit is contained in:
parent
258b4a20ae
commit
6b714bc805
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue