You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@gramio/format

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gramio/format

Library for formatting text for Telegram Bot API

0.3.3
latest
Source
npmnpm
Version published
Weekly downloads
568
72.12%
Maintainers
1
Weekly downloads
 
Created
Source

@gramio/format

Library for formatting text for Telegram Bot API. Used under the hood by GramIO framework but it framework-agnostic.

npm JSR JSR Score

Usage

bot.api.sendMessage({
    chat_id: 12321,
    text: format`${bold`Hi!`}

		Can ${italic("you")} help ${spoiler`me`}?
	
			Can you give me a ${link("star", "https://github.com/gramiojs/gramio")}?`,
});

example

See Documentation

Keywords

gramio

FAQs

Package last updated on 12 Jul 2025

Did you know?

Socket

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.

Install

Related posts