https://github.com/wechaty/dotnet-wechaty-getting-started
.NET Wechaty Starter Project Template that Works Out-of-the-Box
https://github.com/wechaty/dotnet-wechaty-getting-started
chatbot dotnet wechaty
Last synced: about 1 year ago
JSON representation
.NET Wechaty Starter Project Template that Works Out-of-the-Box
- Host: GitHub
- URL: https://github.com/wechaty/dotnet-wechaty-getting-started
- Owner: wechaty
- Created: 2020-12-01T02:58:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T03:27:09.000Z (over 4 years ago)
- Last Synced: 2024-04-13T19:20:41.187Z (about 2 years ago)
- Topics: chatbot, dotnet, wechaty
- Language: C#
- Homepage:
- Size: 62.6 MB
- Stars: 11
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotnet-wechaty-getting-started [](https://github.com/wechaty/dotnet-wechaty)

## 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
[](https://github.com/wechaty/python-wechaty)
[](https://github.com/wechaty/go-wechaty)
[](https://github.com/wechaty/java-wechaty)
[](https://github.com/wechaty/scala-wechaty)
[](https://github.com/wechaty/php-wechaty)
[](https://github.com/wechaty/dotnet-wechaty)
- [Python Wechaty Getting Started](https://github.com/wechaty/python-wechaty-getting-started)
- [Go Wechaty Getting Started](https://github.com/wechaty/go-wechaty-getting-started)
- [Java Wechaty Getting Started](https://github.com/wechaty/java-wechaty-getting-started)
- [Scala Wechaty Getting Started](https://github.com/wechaty/scala-wechaty-getting-started)
- [PHP Wechaty Getting Started](https://github.com/wechaty/php-wechaty-getting-started)
- [.NET Wechaty Getting Started](https://github.com/wechaty/dotnet-wechaty-getting-started)
## Maintainers
[@wechaty/dotnet](https://github.com/orgs/wechaty/teams/dotnet/members)
## Copyright & License
- Code & Docs © 2018-now Huan and Wechaty Community Contributors ()
- Code released under the Apache-2.0 License
- Docs released under Creative Commons