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
- 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
- Chat Actions
- Sticker Sets
- Channel Direct Messages
- Paid Media
- Star Balance and Transactions
Users
- Scheduled Messages
- Stories
- Secret Chats
- Contacts
- Authorization Sessions
- Blocked Users
- Privacy Settings
- Notification Settings
- Communities
- Profile Music
- Archived Chats
- Message Translation
- Usernames
- Account Auto-Deletion
- Chat Recommendations
- Saved Messages
- Message Drafts
Bots
- Keyboards and Callback Queries
- Inline Queries
- Bot Profile
- Payments
- Streaming Responses
- Business Connections
- Guest Queries
- Ephemeral Messages
- Paid Broadcasts
- User Emoji Statuses
- Managed Bots
- Bot Commands
- Premium Subscription Gifts
- Requesting Users
- Login Buttons
- Bot Write Access
- Star Payment Refunds
Guides
- Auth Strings
- Flood Waits
- Graceful Shutdown
- Interacting with Telegram API
- Log Verbosity
- Splitting Code
- Storage Adapters
- Web Workers
- Proxies