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. Connecting Manually
  4. Calling Methods
  5. Handling Updates
  6. Catching Errors
  7. Working with Messages
  8. Commands
  9. Reactions
  10. Files
  1. Rich Messages and Text Formatting
  2. Polls
  3. Checklists
  4. Topics
  5. Chat Members
  6. Invite Links and Join Requests
  7. Chat Settings
  8. Chat Actions
  9. Stickers and Sticker Sets
  10. Channel Direct Messages
  11. Paid Media
  12. Star & TON Balance and Transactions
  13. Gifts
  14. Chat Navigation
  15. Network Statistics

Users

  1. Contacts
  2. Chat Recommendations
  3. Communities
  4. Archived Chats
  5. Saved Messages
  6. Message Drafts
  7. Scheduled Messages
  8. Message Translation
  9. Secret Chats
  10. Stories
  1. Profile Photos
  2. Usernames
  3. Name and Profile Color
  4. Birthday
  5. Profile Music
  6. Personal Channel
  7. Close Friends
  8. Blocked Users
  9. Notification Settings
  10. Privacy Settings
  11. Authorization Sessions
  12. Connected Websites
  13. Account Auto-Deletion
  14. Read Date Privacy
  15. Account and App Settings
  16. Business Profile
  17. Message History
  18. Message Statistics
  19. Voice Transcription
  20. Message Summaries
  21. Saved Animations
  22. Bots and Mini Apps
  23. Poll Management
  24. Chat Administration
  25. Inline Interactions
  26. Story Organization
  27. Video Chats and Live Streams
  28. Gift Collections
  29. Takeout Sessions
  30. Application Configuration
  31. Countries and Timezones
  32. App Support
  33. Pinned Chats
  34. Inactive Chats
  35. Common Chats
  36. Chat Antispam
  37. Chat Boosts
  38. Reporting Chats
  39. Administration Log
  40. Administered Chats

Bots

Guides

API Reference

Misc