Small single user telegram bot for English to Russian translation and words training. Built with .Net 6.0, SQLite, EF Core, DI and Yandex Translate API. You can try it here.
You need a Docker or a dotnet framework 6.0 installed to build this app, and also a docker-compose if you want to run it via compose file.
git clone https://github.com/dinAlt/WordsBot.git
cd WordsBot
docker build .git clone https://github.com/dinAlt/WordsBot.git
cd WordsBot
dotnet build --configuration Release
See dotnet documentation for more build options.
You can also youse dotnet publish command to build portable versions of executable.
mv env_sample .envThen open .env file in text editor and set variables to values you got from @BotFather bot and Yandex Translate API (but do not touch WORDSBOT_SqliteDatabasePath variable).
# for all docker-compose versions
docker-compose up
# newer command for docker-compose v2
docker compose upTested on Linux, on Windows paths and commands may vary.
cd src/WordsBot/bin/Release/net6.0
mv config.sample.json config.jsonThen open config.json with text editor and set options to values you got from @BotFather bot and Yandex Translate API.
./WordsBot
# probably, WordsBot.exe on Windows