Awesome
dotnet-wechaty-getting-started
Quick Start
Start Wechaty Gateway
1、 Wechaty Gateway HTTP protocol
export WECHATY_LOG="verbose"
export WECHATY_PUPPET="wechaty-puppet-padlocal"
export WECHATY_PUPPET_PADLOCAL_TOKEN="puppet_padlocal_XXXX"
export WECHATY_PUPPET_SERVER_PORT="9002"
export WECHATY_TOKEN="set your gateway token"
docker run -it \
--name wechaty-gateway-http \
-e WECHATY_LOG \
-e WECHATY_PUPPET \
-e WECHATY_PUPPET_PADLOCAL_TOKEN \
-e WECHATY_PUPPET_SERVER_PORT \
-e WECHATY_TOKEN \
-p "$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT" \
wechaty/wechaty:0.56
2、Wechaty Gateway HTTPS protocol
export WECHATY_LOG="verbose"
export WECHATY_PUPPET="wechaty-puppet-padlocal"
export WECHATY_PUPPET_PADLOCAL_TOKEN="puppet_padlocal_XXXX"
export WECHATY_PUPPET_SERVICE_NO_SSL_UNSAFE_CLIENT=true
export WECHATY_PUPPET_SERVER_PORT="9001"
export WECHATY_TOKEN="set your gateway token"
docker run -it \
--name wechaty-gateway-xian-no-ssl \
--network=public \
-e WECHATY_LOG \
-e WECHATY_PUPPET \
-e WECHATY_PUPPET_PADLOCAL_TOKEN \
-e WECHATY_PUPPET_SERVER_PORT \
-e WECHATY_TOKEN \
-e WECHATY_PUPPET_SERVICE_NO_SSL_UNSAFE_CLIENT \
-p "$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT" \
wechaty/wechaty
Start .NET Wechaty Client
1、Clone dotnet-wechaty-getting-started repository
git clone https://github.com/wechaty/dotnet-wechaty-getting-started.git
cd dotnet-wechaty-getting-started
2、install Nuget Package
nuget restore
3、Set token for your bot
open appsettings.json
set wechaty configuration
// eg:http://localhost:9002 https://localhost:9002
"WECHATY_PUPPET_HOSTIE_TOKEN": "",
"WECHATY_ENDPOINT": "",
If you are using the HTTP protocol, use https://127.0.0.1:9001
4、Run the bot
visual studio F5
# or
dotnet run
Wechaty Getting Started in Multiple Languages
- Python Wechaty Getting Started
- Go Wechaty Getting Started
- Java Wechaty Getting Started
- Scala Wechaty Getting Started
- PHP Wechaty Getting Started
- .NET Wechaty Getting Started
Maintainers
Copyright & License
- Code & Docs © 2018-now Huan and Wechaty Community Contributors (https://github.com/wechaty)
- Code released under the Apache-2.0 License
- Docs released under Creative Commons