{"id":28445131,"url":"https://github.com/wechaty/dotnet-wechaty-getting-started","last_synced_at":"2025-06-29T20:31:56.490Z","repository":{"id":74369076,"uuid":"317408293","full_name":"wechaty/dotnet-wechaty-getting-started","owner":"wechaty","description":".NET Wechaty Starter Project Template that Works Out-of-the-Box","archived":false,"fork":false,"pushed_at":"2021-10-15T03:27:09.000Z","size":65613,"stargazers_count":11,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-13T19:20:41.187Z","etag":null,"topics":["chatbot","dotnet","wechaty"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wechaty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-12-01T02:58:20.000Z","updated_at":"2024-03-30T06:29:01.000Z","dependencies_parsed_at":"2023-04-12T19:34:48.196Z","dependency_job_id":null,"html_url":"https://github.com/wechaty/dotnet-wechaty-getting-started","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"wechaty/getting-started","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fdotnet-wechaty-getting-started","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fdotnet-wechaty-getting-started/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fdotnet-wechaty-getting-started/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fdotnet-wechaty-getting-started/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wechaty","download_url":"https://codeload.github.com/wechaty/dotnet-wechaty-getting-started/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wechaty%2Fdotnet-wechaty-getting-started/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258383094,"owners_count":22692135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","dotnet","wechaty"],"created_at":"2025-06-06T10:11:24.719Z","updated_at":"2025-06-29T20:31:56.448Z","avatar_url":"https://github.com/wechaty.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotnet-wechaty-getting-started [![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-brightgreen.svg)](https://github.com/wechaty/dotnet-wechaty)\n\n![Dotnet Wechaty](https://raw.githubusercontent.com/wechaty/dotnet-wechaty/master/docs/images/dotnet-wechaty.png)\n\n## Quick Start\n\n###   Start Wechaty  Gateway\n\n1、 Wechaty Gateway  HTTP protocol\n\n```\nexport WECHATY_LOG=\"verbose\"\nexport WECHATY_PUPPET=\"wechaty-puppet-padlocal\"\nexport WECHATY_PUPPET_PADLOCAL_TOKEN=\"puppet_padlocal_XXXX\"\nexport WECHATY_PUPPET_SERVER_PORT=\"9002\"\nexport WECHATY_TOKEN=\"set your gateway token\"\n\ndocker run -it \\\n  --name wechaty-gateway-http \\\n  -e WECHATY_LOG \\\n  -e WECHATY_PUPPET \\\n  -e WECHATY_PUPPET_PADLOCAL_TOKEN \\\n  -e WECHATY_PUPPET_SERVER_PORT \\\n  -e WECHATY_TOKEN \\\n  -p \"$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT\" \\\n  wechaty/wechaty:0.56\n```\n\n\n2、Wechaty Gateway  HTTPS protocol\n\n```\nexport WECHATY_LOG=\"verbose\"\nexport WECHATY_PUPPET=\"wechaty-puppet-padlocal\"\nexport WECHATY_PUPPET_PADLOCAL_TOKEN=\"puppet_padlocal_XXXX\"\nexport WECHATY_PUPPET_SERVICE_NO_SSL_UNSAFE_CLIENT=true\nexport WECHATY_PUPPET_SERVER_PORT=\"9001\"\nexport WECHATY_TOKEN=\"set your gateway token\"\n\ndocker run -it \\\n  --name wechaty-gateway-xian-no-ssl \\\n  --network=public \\\n  -e WECHATY_LOG \\\n  -e WECHATY_PUPPET \\\n  -e WECHATY_PUPPET_PADLOCAL_TOKEN \\\n  -e WECHATY_PUPPET_SERVER_PORT \\\n  -e WECHATY_TOKEN \\\n  -e WECHATY_PUPPET_SERVICE_NO_SSL_UNSAFE_CLIENT \\\n  -p \"$WECHATY_PUPPET_SERVER_PORT:$WECHATY_PUPPET_SERVER_PORT\" \\\n  wechaty/wechaty\n```\n\n\n\n### Start .NET Wechaty Client\n1、Clone dotnet-wechaty-getting-started repository\n```\ngit clone https://github.com/wechaty/dotnet-wechaty-getting-started.git\ncd  dotnet-wechaty-getting-started\n```\n\n2、install Nuget Package\n```\nnuget restore \n```\n\n3、Set token for your bot \nopen `appsettings.json` set wechaty configuration \n\n```\n  // eg：http://localhost:9002  https://localhost:9002 \n\n  \"WECHATY_PUPPET_HOSTIE_TOKEN\": \"\",\n  \"WECHATY_ENDPOINT\": \"\",\n```\n If you are using the HTTP protocol, use https://127.0.0.1:9001\n\n\n4、Run the  bot\n```\nvisual studio  F5 \n# or\ndotnet run\n```\n\n\n\n\n##  Wechaty Getting Started in Multiple Languages\n\n\u003chttps://wechaty.js.org\u003e\n\n[![Wechaty in Python](https://img.shields.io/badge/Wechaty-Python-blue)](https://github.com/wechaty/python-wechaty)\n[![Wechaty in Go](https://img.shields.io/badge/Wechaty-Go-7de)](https://github.com/wechaty/go-wechaty)\n[![Wechaty in Java](https://img.shields.io/badge/Wechaty-Java-f80)](https://github.com/wechaty/java-wechaty)\n[![Wechaty in Scala](https://img.shields.io/badge/Wechaty-Scala-890)](https://github.com/wechaty/scala-wechaty)\n[![Wechaty in PHP](https://img.shields.io/badge/Wechaty-PHP-99c)](https://github.com/wechaty/php-wechaty)\n[![Wechaty in .NET](https://img.shields.io/badge/Wechaty-.NET-629)](https://github.com/wechaty/dotnet-wechaty)\n\n- [Python Wechaty Getting Started](https://github.com/wechaty/python-wechaty-getting-started)\n- [Go Wechaty Getting Started](https://github.com/wechaty/go-wechaty-getting-started)\n- [Java Wechaty Getting Started](https://github.com/wechaty/java-wechaty-getting-started)\n- [Scala Wechaty Getting Started](https://github.com/wechaty/scala-wechaty-getting-started)\n- [PHP Wechaty Getting Started](https://github.com/wechaty/php-wechaty-getting-started)\n- [.NET Wechaty Getting Started](https://github.com/wechaty/dotnet-wechaty-getting-started)\n\n\n\n## Maintainers\n\n[@wechaty/dotnet](https://github.com/orgs/wechaty/teams/dotnet/members)\n\n## Copyright \u0026 License\n\n- Code \u0026 Docs © 2018-now Huan and Wechaty Community Contributors (\u003chttps://github.com/wechaty\u003e)\n- Code released under the Apache-2.0 License\n- Docs released under Creative Commons\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechaty%2Fdotnet-wechaty-getting-started","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwechaty%2Fdotnet-wechaty-getting-started","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwechaty%2Fdotnet-wechaty-getting-started/lists"}