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

  1. Installation
  2. Starting the Client
  3. Calling Methods
  4. Handling Updates
  5. Catching Errors
  6. Working with Messages
  7. Commands
  8. Reactions
  9. Files
  10. Rich Messages and Text Formatting
  11. Polls
  12. Checklists
  13. Topics
  14. Chat Members
  15. Invite Links and Join Requests
  16. Chat Settings

Users

Features available when the client authorizes a personal Telegram account.

  1. Scheduled Messages
  2. Stories
  3. Secret Chats
  4. Contacts
  5. Authorization Sessions
  6. Blocked Users
  7. Privacy Settings
  8. Notification Settings

Bots

Features available when the client authorizes a bot token.

  1. Keyboards and Callback Queries
  2. Inline Queries
  3. Bot Profile

Guides

API Reference

Misc