Skip to main content

@gramio/core@0.0.37

Powerful Telegram Bot API framework

Works with
This package works with Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Browsers
JSR Score
76%
Published
a day ago (0.0.37)

GramIO

Bot API npm JSR JSR Score

TypeScript/JavaScript Telegram Bot API Framework for create your bots with convenience!

Extensible - Our plugin and hook system is awesome

🛡️ Type-safe - Written in TypeScript with love ❤️

🌐 Multi-runtime - Works on Node.js, Bun and Deno*

⚙️ Code-generated - Many parts are code-generated (for example, code-generated and auto-published Telegram Bot API types)

Deno* windows-specific issue with undici

Get started

To create your new bot, you just need to write it to the console:

npm create gramio ./bot

and GramIO customize your project the way you want it!

Example

import { Bot } from "gramio";

const bot = new Bot(process.env.TOKEN as string)
    .command("start", (context) => context.send("Hello!"))
    .onStart(({ info }) => console.log(`✨ Bot ${info.username} was started!`));

bot.start();

For more, please see documentation.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @gramio/core

Import symbol

import * as mod from "@gramio/core";

Add Package

npx jsr add @gramio/core

Import symbol

import * as mod from "@gramio/core";

Add Package

yarn dlx jsr add @gramio/core

Import symbol

import * as mod from "@gramio/core";

Add Package

pnpm dlx jsr add @gramio/core

Import symbol

import * as mod from "@gramio/core";

Add Package

bunx jsr add @gramio/core

Import symbol

import * as mod from "@gramio/core";