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];