Index
MTKruto is a Telegram client library for JavaScript.
Its key features include:
-
Cross-runtime
Supports Node.js, Deno, browsers, and Bun. -
Type-safe
Written in TypeScript with accurate typings. -
Prioritizes the Web
Prefers Web APIs over runtime-specific APIs. -
Easy-to-use
Provides its own high-level API on top of the Telegram API. -
Extensible
Its middleware system lets you integrate external code.
Walkthrough
Start with the main walkthrough. Individual sections are tagged when they apply only to user accounts or bots.
Main
- Installation
- Starting the Client
- Calling Methods
- Handling Updates
- use
- branch
- filter
- on
- command
- callbackQueryBOT-ONLY
- inlineQueryBOT-ONLY
- chosenInlineResultBOT-ONLY
- chatType
- Catching Errors
- Working with Messages
- Commands
- Custom Prefixes
- Outgoing MessagesUSER-ONLY
- Reactions
- Files
- Rich Messages and Text Formatting
- Polls
- Checklists
- Topics
- Chat Members
- Invite Links and Join Requests
- Chat Settings
Users
Features available when the client authorizes a personal Telegram account.
- Scheduled Messages
- Stories
- Secret Chats
- Contacts
- Authorization Sessions
- Blocked Users
- Privacy Settings
- Notification Settings
Bots
Features available when the client authorizes a bot token.