Skip to content

GramIO API Reference

TypeScript API reference auto-generated from the .d.ts files of all GramIO packages. Browse classes, interfaces, type aliases, and their full signatures.

Tip: Looking for Telegram Bot API types and method parameters? See the Telegram API Reference which documents the official Bot API from a Telegram perspective.

Core Packages

PackageDescription
gramioMain Bot class and core re-exports
@gramio/contextsAll context classes (MessageContext, CallbackQueryContext, etc.) — most important for bot development
@gramio/keyboardsKeyboard, InlineKeyboard, RemoveKeyboard, ForceReply builders
@gramio/filesMediaUpload, MediaInput — file upload helpers
@gramio/formatformat, bold, italic, code, and other text formatting utilities
@gramio/callback-dataCallbackData — type-safe callback data builder
@gramio/composerComposer — standalone middleware composer

Plugin Packages

PackageDescription
@gramio/scenesScene-based conversation flows
@gramio/sessionSession storage plugin
@gramio/storageStorage adapter interface
@gramio/i18nInternationalization plugin
@gramio/autoloadAuto-load handlers from files
@gramio/auto-retryAutomatic retry on Telegram API errors
@gramio/promptPrompt for user input within handlers
@gramio/init-dataTelegram Mini App init data validation

Most-Used Classes

Quick links to the most frequently referenced types:

Generation

These pages are auto-generated by TypeDoc with typedoc-plugin-markdown and typedoc-vitepress-theme.

Run locally:

bash
bun run gen:typedoc