Skip to main content

.NET Wechaty

.NET Wechaty

.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.

Getting Started

You can run the below commands for starting the. NET-Wechaty.

git clone
cd dotnet-wechaty-getting-started
# install Nuget Package
nuget restore
# Set token for your bot open appsettings.json set wechaty configuration
"WECHATY_PUPPET": "wechaty-puppet-hostie",
# Run the bot as
visual studio F5
# or
dotnet run

Translation of TypeScript to .NET

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.

TypeScript: C#:


For more information on the. NET-Wechaty releases and history, visit the link below.