mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 20:03:17 +00:00
display urls
This commit is contained in:
parent
40d56d4baa
commit
4e196271ae
1 changed files with 5 additions and 0 deletions
|
@ -384,6 +384,11 @@ class MsgView:
|
||||||
msg += "\n"
|
msg += "\n"
|
||||||
for item in row:
|
for item in row:
|
||||||
if text := item.get("text"):
|
if text := item.get("text"):
|
||||||
|
_type = item.get("type", {})
|
||||||
|
if _type.get("@type") == "inlineKeyboardButtonTypeUrl":
|
||||||
|
url = _type.get("url")
|
||||||
|
if url:
|
||||||
|
text = f"{text} ({url})"
|
||||||
msg += f"| {text} "
|
msg += f"| {text} "
|
||||||
msg += "|"
|
msg += "|"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue