display urls

This commit is contained in:
lightme16 2020-10-10 16:38:22 +03:00
parent 40d56d4baa
commit 4e196271ae

View file

@ -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 += "|"