Guides

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

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
  17. Chat Actions
  18. Sticker Sets
  19. Channel Direct Messages
  20. Paid Media
  21. Star Balance and Transactions

Users

  1. Scheduled Messages
  2. Stories
  3. Secret Chats
  4. Contacts
  5. Authorization Sessions
  6. Blocked Users
  7. Privacy Settings
  8. Notification Settings
  9. Communities
  10. Profile Music
  11. Archived Chats
  12. Message Translation
  13. Usernames
  14. Account Auto-Deletion
  15. Chat Recommendations
  16. Saved Messages
  17. Message Drafts

Bots

  1. Keyboards and Callback Queries
  2. Inline Queries
  3. Bot Profile
  4. Payments
  5. Streaming Responses
  6. Business Connections
  7. Guest Queries
  8. Ephemeral Messages
  9. Paid Broadcasts
  10. User Emoji Statuses
  11. Managed Bots
  12. Bot Commands
  13. Premium Subscription Gifts
  14. Requesting Users
  15. Login Buttons
  16. Bot Write Access
  17. Star Payment Refunds

Guides

API Reference

Misc