
Security News
Potemkin Understanding in LLMs: New Study Reveals Flaws in AI Benchmarks
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
@grammyjs/parse-mode
Advanced tools
This library provides simplified formatting utilities for the grammY Telegram Bot framework. It enables you to compose richly formatted messages using a declarative, type-safe API.
With this plugin, you can:
The plugin is compatible with both Deno and Node.js, and is designed to work as a drop-in enhancement for grammY bots that need robust formatting capabilities.
import { Bot } from "grammy";
import { fmt, b, u } from "@grammyjs/parse-mode";
const bot = new Bot("");
bot.command("demo", async (ctx) => {
// Using return values of fmt
const combined = fmt`${b}bolded${b} ${ctx.msg.text} ${u}underlined${u}`;
await ctx.reply(combined.text { entities: combined.entities });
await ctx.replyWithPhoto(photo { caption: combined.caption, caption_entities: combined.caption_entities });
});
bot.start();
import { Bot } from "grammy";
import { FormattedString } from "@grammyjs/parse-mode";
const bot = new Bot("");
bot.command("demo", async (ctx) => {
// Using return values of Fmt
const combined = FormattedString.b("bolded").plain(ctx.msg.text).u("underlined");
await ctx.reply(combined.text { entities: combined.entities });
await ctx.replyWithPhoto(photo { caption: combined.caption, caption_entities: combined.caption_entities });
});
bot.start();
FAQs
Plugin for constructing Formatted Texts in Telegram
The npm package @grammyjs/parse-mode receives a total of 2,729 weekly downloads. As such, @grammyjs/parse-mode popularity was classified as popular.
We found that @grammyjs/parse-mode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.