Regen code (Bot API 5.0)

This commit is contained in:
Alex Root Junior 2020-11-16 04:11:13 +02:00
parent a339514fb9
commit 2495836469
4 changed files with 15 additions and 5 deletions

View file

@ -149,7 +149,7 @@ def prepare_parse_mode(
entities_property=entities_property,
)
elif root.get(parse_mode_property, UNSET) is UNSET:
if bot.parse_mode and not root.get(entities_property, None):
if bot.parse_mode and root.get(entities_property, None) is None:
root[parse_mode_property] = bot.parse_mode
else:
root[parse_mode_property] = None