mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-28 16:17:11 +08:00
fix: telegraph
This commit is contained in:
parent
4d0b9ee799
commit
8a61b9d40b
@ -402,7 +402,7 @@ class TelegraphAPI:
|
||||
]
|
||||
|
||||
if element.attrs:
|
||||
tag_dict["attributes"] = element.attrs
|
||||
tag_dict["attrs"] = element.attrs
|
||||
if element.contents:
|
||||
children = []
|
||||
for child in element.contents:
|
||||
@ -413,7 +413,7 @@ class TelegraphAPI:
|
||||
tag_dict["children"] = children
|
||||
else:
|
||||
if element.attrs:
|
||||
tag_dict["attributes"] = element.attrs
|
||||
tag_dict["attrs"] = element.attrs
|
||||
if element.contents:
|
||||
children = []
|
||||
for child in element.contents:
|
||||
|
Loading…
x
Reference in New Issue
Block a user