From a9fdc2645acb89d4a787fef6d10aea416cf7202d Mon Sep 17 00:00:00 2001 From: Alex Chexca Date: Mon, 5 Aug 2024 21:31:08 +0300 Subject: [PATCH] Add expandable to blockquote html parser (#703) * Update html.ts. Add expandable to blockquote --------- Co-authored-by: Alex Ch --- gramjs/extensions/html.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramjs/extensions/html.ts b/gramjs/extensions/html.ts index 7d2b0571..4c73250a 100644 --- a/gramjs/extensions/html.ts +++ b/gramjs/extensions/html.ts @@ -46,6 +46,9 @@ class HTMLToTelegramParser implements Handler { EntityType = Api.MessageEntityStrike; } else if (name == "blockquote") { EntityType = Api.MessageEntityBlockquote; + if (attributes.expandable !== undefined) { + args.collapsed = true; + } } else if (name == "code") { const pre = this._buildingEntities.get("pre"); if (pre && pre instanceof Api.MessageEntityPre) {