mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +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"
|
||||
for item in row:
|
||||
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 += "|"
|
||||
|
||||
|
|
Loading…
Reference in a new issue