Skip to content
/ parse Public

Create formatted messages using template strings

License

Notifications You must be signed in to change notification settings

MTKruto/parse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTKruto Parse

A 1:1 clone of grammyjs/parse-mode modified to work with MTKruto.

Installation

Deno

deno add @mtkruto/parse

pnpm

pnpm add @mtkruto/parse

Yarn

yarn add @mtkruto/parse

npm

npm install @mtkruto/parse

Bun

bun add @mtkruto/parse

Usage

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)}`)}.`);
});

API Reference

https://jsr.io/@mtkruto/parse/doc

License

MIT

License File

About

Create formatted messages using template strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published