From 36a3ce62c453e8b9b56a5401bb76c7b5f3ae0acf Mon Sep 17 00:00:00 2001 From: andvch Date: Wed, 14 Oct 2020 12:06:49 +0300 Subject: [PATCH] Fix broken text_mention html formatting --- telebot/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/types.py b/telebot/types.py index 3845532..1534da8 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -503,7 +503,7 @@ class Message(JsonDeserializable): def func(upd_text, subst_type=None, url=None, user=None): upd_text = upd_text.decode("utf-16-le") if subst_type == "text_mention": - subst_type = "url" + subst_type = "text_link" url = "tg://user?id={0}".format(user.id) elif subst_type == "mention": url = "https://t.me/{0}".format(upd_text[1:])