mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-28 16:17:11 +08:00
Merge pull request #41 from xingty/fix-telegraph
Fixed issue with <a> tags not working in Telegraph.
This commit is contained in:
commit
7b4ab94a3e
@ -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