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
- Connecting Manually
- 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
- Available ReactionsUSER-ONLY
- Detailed ReactionsUSER-ONLY
- Reporting a ReactionUSER-ONLY
- Recent and Default ReactionsUSER-ONLY
- Reacting to Messages
- Reaction Updates
- Files
- Rich Messages and Text Formatting
- Polls
- Checklists
- Topics
- Chat Members
- Invite Links and Join Requests
- Chat Settings
- Changing the Title and Description
- Changing the Photo
- Enabling Slow ModeUSER-ONLY
- Automatically Deleting MessagesUSER-ONLY
- Personal Chat SettingsUSER-ONLY
- Chat Actions
- Stickers and Sticker Sets
- Channel Direct Messages
- Paid Media
- Star & TON Balance and Transactions
- Gifts
- Chat Navigation
- Network Statistics
Users
- Contacts
- Chat Recommendations
- Communities
- Archived Chats
- Saved Messages
- Message Drafts
- Scheduled Messages
- Message Translation
- Secret Chats
- Stories
- Profile Photos
- Usernames
- Name and Profile Color
- Birthday
- Profile Music
- Personal Channel
- Close Friends
- Blocked Users
- Notification Settings
- Privacy Settings
- Authorization Sessions
- Connected Websites
- Account Auto-Deletion
- Read Date Privacy
- Account and App Settings
- Business Profile
- Message History
- Message Statistics
- Voice Transcription
- Message Summaries
- Saved Animations
- Bots and Mini Apps
- Poll Management
- Chat Administration
- Inline Interactions
- Story Organization
- Video Chats and Live Streams
- Gift Collections
- Takeout Sessions
- Application Configuration
- Countries and Timezones
- App Support
- Pinned Chats
- Inactive Chats
- Common Chats
- Chat Antispam
- Chat Boosts
- Reporting Chats
- Administration Log
- Administered Chats
Bots
- Bot Profile
- Bot Commands
- Keyboards and Callback Queries
- Requesting Users
- Ephemeral Messages
- Streaming Responses
- Inline Queries
- Editing Inline Messages
- Guest Queries
- Login Buttons
Guides
- Auth Strings
- Flood Waits
- Graceful Shutdown
- Interacting with Telegram API
- Log Verbosity
- Splitting Code
- Storage Adapters
- Web Workers
- Proxies