Source: Time to do it differently, build chatbots with streams
Microsoft Bot Framework v4 adapter for Wechat Individual Account
If you are finding the Bot Framework v3 version of this adapter, please goto:
npm install botbuilder-wechaty-adapter
We assume that, you already have a wechat individual account.
Step 1, create your wechaty adapter:
import { WechatyAdapter } from "botbuilder-wechaty-adapter" const adapter = new WechatyAdapter()
Step 2, start listening your wechaty adapter:
const closeFn = await adapter.listen(async (context: TurnContext) => { // ... })
From there you can pass the context
to your bot logic's onTurn()
method.
To Be Supported.
An example is located at examples/
directory. Using following command to run it.
npm run example
This package is greatly inspired by:
Please feel free to open issues, if you have any suggestion.
Upgrade to Microsoft BotBuilder v4
botbuilder-wechaty-adapter
from botbuilder-wechaty-connect
for following the v4 naming style.Release botbuilder-wechaty-adapter@3.0
for BotBuilder v3
ConsoleConnector
npm run example
Huan LI <zixia@zixia.net>, who is recognized as both Microsoft Regional Director (RD) and Microsoft Most Valuable Professional (MVP) from Microsoft.