diff --git a/pyrogram/client/parser/html.py b/pyrogram/client/parser/html.py
index 82499cb3..5ec43874 100644
--- a/pyrogram/client/parser/html.py
+++ b/pyrogram/client/parser/html.py
@@ -86,8 +86,7 @@ class Parser(HTMLParser):
for entities in self.tag_entities.values():
for entity in entities:
- entity.offset += len(data) - len(data.lstrip()) # Ignore left whitespaces for offsets
- entity.length += len(data.strip()) # Ignore all whitespaces (left + right) for lengths
+ entity.length += len(data)
self.text += data