mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-02-27 14:25:14 +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:
|
telegram.OrderInfo:
|
||||||
"""
|
"""
|
||||||
if not data:
|
if not data:
|
||||||
return None
|
return OrderInfo()
|
||||||
|
|
||||||
data = super(OrderInfo, OrderInfo).de_json(data, bot)
|
data = super(OrderInfo, OrderInfo).de_json(data, bot)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue