weixin-ts / bot/src
bot/src
@weixin-ts/bot — Framework-agnostic WeChat Bot SDK
A cross-platform TypeScript SDK for interacting with the WeChat iLink Bot API. Works in Node.js, Deno, Bun, and browsers.
Example
ts
import { WeixinBot } from '@weixin-ts/bot'
const bot = new WeixinBot({ token: 'YOUR_TOKEN' })
bot.on('message', (msg) => {
console.log('Received:', msg)
})
bot.start()Namespaces
Classes
Interfaces
- BaseInfo
- BotEventMap
- CDNMedia
- FileItem
- GetConfigResp
- GetUpdatesReq
- GetUpdatesResp
- GetUploadUrlReq
- GetUploadUrlResp
- ImageItem
- LoginCallbacks
- LoginResult
- MessageItem
- QRCodeResult
- QRLoginOptions
- QRPollCallbacks
- RefMessage
- SendMediaOptions
- SendMessageReq
- SendTextOptions
- SendTypingReq
- SendTypingResp
- SessionData
- TextItem
- VideoItem
- VoiceItem
- WeixinBotOptions
- WeixinMessage
Type Aliases
Variables
- DEFAULT_API_TIMEOUT_MS
- DEFAULT_BASE_URL
- DEFAULT_CDN_BASE_URL
- DEFAULT_CONFIG_TIMEOUT_MS
- DEFAULT_LONG_POLL_TIMEOUT_MS
- MessageItemType
- MessageState
- MessageType
- SDK_VERSION
- TypingStatus
- UploadMediaType