BotSharp/src/Plugins/BotSharp.Plugin.WeChat
LAPTOP-3CFGGVOS\rabbit 504bfd24b2 hotfix SendMessage error
2024-09-12 18:55:42 +08:00
..
Users Add UserName 2024-01-04 21:20:50 -06:00
BotSharp.Plugin.WeChat.csproj upgrade 2024-06-26 16:15:29 -05:00
BotSharpMessageHandler.cs Add file as conversation storage.#76 2023-06-27 13:31:13 -05:00
IMessageQueue.cs feat: add WeChat Plugin 2023-06-24 17:25:55 +08:00
README.md docs: update wechat plugin readme.md 2023-07-03 11:09:20 +08:00
WeChatBackgroundService.cs hotfix SendMessage error 2024-09-12 18:55:42 +08:00
WeChatMessage.cs feat: add WeChat Plugin 2023-06-24 17:25:55 +08:00
WeChatPlugin.cs Add id to plugin. 2024-01-12 16:20:22 -06:00

botsharp-plugin-wechat

A channel plugin of BotSharp for Tencent WeChat

How to run locally

git clone https://github.com/SciSharp/BotSharp

Check appsettings.json to import module

{
  "PluginLoader": {
    "Assemblies": [
      ...
      "BotSharp.Plugin.WeChat"
    ],
    "Plugins": [
      ...
      "WeChatPlugin"
    ]
  }
}

Update appsettings.json to set the corresponding KEY

{
   "WeChat": {
    "AgentId": "437bed34-1169-4833-95ce-c24b8b56154a",
    "Token": "#{Token}#",
    "EncodingAESKey": "#{EncodingAESKey}#",
    "WeixinAppId": "#{WeixinAppId}#",
    "WeixinAppSecret": "#{WeixinAppSecret}#"
  }
}

Update WeChat WebHook form https://mp.weixin.qq.com/ ,set as https://{HOST}/WeChatAsync

F5 run WebStarter

Access http://localhost:5500

If you are debugging and developing locally, you can use an intranet penetration tool to receive WeChat message push. It is recommended to use the Dev Tunnels of VS.