mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-27 08:50:38 +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:
|
||||
text = data['text']
|
||||
else:
|
||||
text = None
|
||||
text = ''
|
||||
|
||||
if 'audio' in data:
|
||||
from telegram import Audio
|
||||
|
|
Loading…
Add table
Reference in a new issue