mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-26 09:07:43 +01:00
OrderInfo can be completely empty
In which case it should still be an OrderInfo not None
This commit is contained in:
parent
b276b06b31
commit
402e1381bb
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class OrderInfo(TelegramObject):
|
|||
telegram.OrderInfo:
|
||||
"""
|
||||
if not data:
|
||||
return None
|
||||
return OrderInfo()
|
||||
|
||||
data = super(OrderInfo, OrderInfo).de_json(data, bot)
|
||||
|
||||
|
|
Loading…
Reference in a new issue