From c533a52e39d1efd1cfd1752bec0d297e49dd17d3 Mon Sep 17 00:00:00 2001 From: EskiSlav Date: Sat, 18 Jul 2020 00:25:00 +0300 Subject: [PATCH] Restored necessary comment --- telebot/types.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telebot/types.py b/telebot/types.py index 7660b80..a622d29 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -514,7 +514,8 @@ class Message(JsonDeserializable): html_text += func(utf16_text[offset * 2 : (offset + entity.length) * 2], entity.type, entity.url, entity.user) offset += entity.length else: - # For future entities + # TODO: process nested entities from Bot API 4.5 + # Now ignoring them pass if offset * 2 < len(utf16_text): html_text += func(utf16_text[offset * 2:])