mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 00:27:09 +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:
|
if element.attrs:
|
||||||
tag_dict["attributes"] = element.attrs
|
tag_dict["attrs"] = element.attrs
|
||||||
if element.contents:
|
if element.contents:
|
||||||
children = []
|
children = []
|
||||||
for child in element.contents:
|
for child in element.contents:
|
||||||
@ -413,7 +413,7 @@ class TelegraphAPI:
|
|||||||
tag_dict["children"] = children
|
tag_dict["children"] = children
|
||||||
else:
|
else:
|
||||||
if element.attrs:
|
if element.attrs:
|
||||||
tag_dict["attributes"] = element.attrs
|
tag_dict["attrs"] = element.attrs
|
||||||
if element.contents:
|
if element.contents:
|
||||||
children = []
|
children = []
|
||||||
for child in element.contents:
|
for child in element.contents:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user