siahe
is designed to help university clubs sell tickets for their events through the Telegram messaging platform. The bot provides a seamless ticket purchasing experience for users, allowing them to easily browse available events, select tickets, and sign up directly within the Telegram app.
- Have the latest version of
go
installed in you path. - Clone this repository and change directory.
- Build.
go build .
siahe
inputs a set of configuration entries. This entries can either be passed by environment variables, argument flags or .env
file. To see the full list of flags either do siahe --help
or check out [file:config.go] directly.
Here is an example usage of an .env
file.
Generate the env file.
cp .env.sample .env
Fill out the env file with specified parameters.
$EDITOR .env
Run the program.
siahe
siahe
images are built upon each commit on Github container registry (ghcr) with latest
tag.
Authorize to GHCR by making a PAT that has read:packages
permission. (info)
Make siahe assets directory and grant nonroot permission to it.
mkdir siahe_assets
sudo chown 65532 siahe_assets
sudo chmod a+w siahe_assets
Generate the following docker-compose.yml
file.
version: '3'
services:
siahe:
image: ghcr.io/dearrude/siahe:latest
container_name: siahe
volumes:
- ./siahe_assets:/home/nonroot/assets
environment:
APPID: -
APPHASH: -
BOTTOKEN: -
ADMINPASSWORD: -
VARIFICATIONCHAT: -
BACKUPCHAT: -
SQLITEPATH: "/home/nonroot/assets/db.sqlite"
SESSIONPATH: "/home/nonroot/assets/session.json"
Run the containers.
docker compose up -d && docker compose logs -f
In case of updates, run the following the command to update and re-run the container:
docker compose pull
docker compose up -d --force-recreate
docker compose logs -f
AGPLv3+