Skip to content

wechaty/dotnet-wechaty-getting-started

Repository files navigation

dotnet-wechaty-getting-started Powered by 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://wechaty.js.org

Wechaty in Python Wechaty in Go Wechaty in Java Wechaty in Scala Wechaty in PHP Wechaty in .NET

Maintainers

@wechaty/dotnet

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

About

.NET Wechaty Starter Project Template that Works Out-of-the-Box

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •