A 1:1 clone of grammyjs/parse-mode modified to work with MTKruto.
deno add @mtkruto/parse
pnpm add @mtkruto/parse
yarn add @mtkruto/parse
npm install @mtkruto/parse
bun add @mtkruto/parse
import { bold, fmt, italic, replyFmt } from "@mtkruto/parse";
client.use(replyFmt);
client.on("message", async (ctx) => {
if (!ctx.from) return;
await ctx.replyFmt(fmt`Hi, ${bold(fmt`your ID is ${italic(ctx.from.id)}`)}.`);
});
https://jsr.io/@mtkruto/parse/doc
MIT