1
0
Maxence 8 сар өмнө
parent
commit
5581af24fe

+ 1 - 1
gramjs/extensions/markdown.ts

@@ -38,7 +38,7 @@ export class MarkdownParser {
                     foundIndex - tempEntities[foundDelim].offset;
                     foundIndex - tempEntities[foundDelim].offset;
                 entities.push(tempEntities[foundDelim]);
                 entities.push(tempEntities[foundDelim]);
             }
             }
-            message = message.replace(foundDelim, "");
+            message = message.toString().replace(foundDelim, "");
             i = foundIndex;
             i = foundIndex;
         }
         }
         return [message, entities];
         return [message, entities];