Konachan Popular (Rust)
This repository contains the source code of the backend program running the Telegram channel @KonachanPopular.
Run in a Container
You will obviously first have to have an OCI-compatible container runtime like Podman or Docker installed. Then, pull and run the container (it's recommended to replace the latest
tag with a specific version number for production use):
sudo podman run -e TELOXIDE_TOKEN=$TELOXIDE_TOKEN -e TELOXIDE_CHAT_ID=$TELOXIDE_CHAT_ID ghcr.io/k4yt3x/konachan-popular:latest
You can pass the settings either through environment variables or arguments. For details, see the help page of the binary:
sudo podman run ghcr.io/k4yt3x/konachan-popular:latest -h
Run From Source
First, you'll need to clone and build this program. For this step, you will need cargo
to be installed and the rustc
compiler available.
git clone https://github.com/k4yt3x/konachan-popular-rust
cd konachan-popular-rust
cargo build --release
After the binary is built, you can either run it directly:
./target/release/konachan-popular -c [CHAT_ID] -t [TOKEN]