Skip to content

Telegram Google Translation Bot written in Rust

Notifications You must be signed in to change notification settings

genyrosk/hilfmir

Repository files navigation

Hilfmir: A Telegram language translation bot

Target languages currently supported:

  • English
  • German
  • French
  • Spanish
  • Russian
  • Korean

Docker builds

Currently 2 docker builds are available: the "vanilla" multistage Dockerfile and the more advanced dependecies-caching Dockerfile-with-chef, which uses cargo-chef to cache the dependencies and speed up incremental builds.

In order to use the Dockerfile-with-chef, make sure you have the following in Cargo.toml:

[dependencies]
...
# Use vendored openssl. We don't depend on it directly.
openssl = { version = "0.10.41", features = ["vendored"], optional = true }

[features]
vendored-openssl = ["openssl"]

Webhook

To configure a webhook that Telegram can send push notifications, set the following environment variables:

WEBHOOK_MODE=true
DOMAIN_HOST=your.domain

TODO:

Add Github Action to push to Dockerhub when releasing.