SendColorBot is a telegram bot that helps to send colors through the Inline interface.
.NET Core — Cross-platform general-purpose development platform.
.NET Extensions — An open-source, cross-platform set of APIs for commonly used programming patterns and utilities.
Telegram.Bot — .NET Client for Telegram Bot API.
ImageSharp — Cross-platform library for image file processing.
• Currently bot can't work correctly on Telegram Desktop because of some issues. issue fixed in last tdesktop version
You need .NET Core SDK 2.2+. Download it here
Also, you need a file server with SSL support. It used to send generated images. I use nginx for this, but you can try any other. For easy installation, you can use autoinstall script by @angristan from here. In addition, you can use config generator by @0xB4LINT.
- Clone repository and open directory:
git clone https://github.com/yet-another-devteam/SendColorBot.git && cd SendColorBot
- Build the project. You can also use portable mode, which doesn't require .NET runtime. Learn more
dotnet publish -c Release
- Navigate to the directory that specified in the console:
... // Here is the path SendColorBot -> /home/dubzer/SendColorBot/SendColorBot/bin/Release/netcoreapp2.2/publish/ ... cd ./SendColorBot/bin/Release/netcoreapp2.2/publish
- Create configuration.json, paste this text and insert your values:
{ "tokens": { "telegramapi": "Bot token. Get it at @BotFather", "fileserver-path": "Path to the file server public directory. This is where fileserver-domain should point", "fileserver-domain": "Public domain with pictures" } }
- Run:
dotnet ./SendColorBot.dll
The project is licensed under the MIT license.