.NET Wechaty is the translation of the TypeScript version of Wechaty using .Net Core. As .Net Core supports cross-platform, so .NET Wechaty also supports cross-platform. It has been tested and passed under different operating systems like Windows, Centos, Ubuntu, and has not been tested on the MacOs yet. For more information on .NET Wechaty you can visit the .NET Wechaty Getting started and to check out the code structure you can visit its Github repo.
You can run the below commands for starting the. NET-Wechaty.
git clone firstname.lastname@example.org:wechaty/dotnet-wechaty-getting-started.gitcd dotnet-wechaty-getting-started# install Nuget Packagenuget restore# Set token for your bot open appsettings.json set wechaty configuration"WECHATY_PUPPET": "wechaty-puppet-hostie","WECHATY_PUPPET_HOSTIE_TOKEN": "token"# Run the bot asvisual studio F5 # ordotnet run
There is a hundred (100) lines class named Image in charge of downloading the WeChat image to different sizes. Below are the links to the Image class for both TypeScript and .NET for a better understanding of the code and the translation.
For more information on the. NET-Wechaty releases and history, visit the link below.
- How .NET Wechaty uses PadLocal Puppet Service, Darren, Jan 28, 2021
- .NET Wechaty Getting Start, Darren, Dec 31, 2020