mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Regen code (Bot API 5.0)
This commit is contained in:
parent
a339514fb9
commit
2495836469
4 changed files with 15 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue