Skip to content

Commit

Permalink
Add expandable to blockquote html parser (#703)
Browse files Browse the repository at this point in the history
* Update html.ts. Add expandable to blockquote


---------

Co-authored-by: Alex Ch <[email protected]>
  • Loading branch information
niocncn and Alex Ch authored Aug 5, 2024
1 parent f14877a commit a9fdc26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gramjs/extensions/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a9fdc26

Please sign in to comment.