From 5581af24fe041107cac5cf6f88402fa0e05f6b9d Mon Sep 17 00:00:00 2001 From: Maxence <40174895+roimee6@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:59:55 +0200 Subject: [PATCH] Update markdown.ts (#707) --- gramjs/extensions/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramjs/extensions/markdown.ts b/gramjs/extensions/markdown.ts index cc8345e3..50241980 100644 --- a/gramjs/extensions/markdown.ts +++ b/gramjs/extensions/markdown.ts @@ -38,7 +38,7 @@ export class MarkdownParser { foundIndex - tempEntities[foundDelim].offset; entities.push(tempEntities[foundDelim]); } - message = message.replace(foundDelim, ""); + message = message.toString().replace(foundDelim, ""); i = foundIndex; } return [message, entities];