curl -O https://raw.githubusercontent.com/phpgeeks-club/admin-bot/master/install.sh
chmod +x install.sh
./install.sh
rm ./install.sh
Also, the bot must disable Privacy mode (in BotFather) before being included in groups (otherwise it will not have access to messages to do reply)
GEEKSONATOR_TELEGRAM_BOT_TOKEN=""GEEKSONATOR_TELEGRAM_TIMEOUT_SECONDS=15GEEKSONATOR_DEBUG_MODE=falseGEEKSONATOR_DEBUG_TELEGRAM_BOT_TOKEN=""
- In file
~/.geeksonatorset variables:GEEKSONATOR_DEBUG_MODE="true" GEEKSONATOR_DEBUG_TELEGRAM_BOT_TOKEN="debug_bot_token_here" - Run:
docker run -d --env-file ~/.geeksonator --name geeksonator.app ghcr.io/phpgeeks-club/geeksonator:latest
- Create file
.envfrom.env.example - Set variables
GEEKSONATOR_DEBUG_MODE="true" GEEKSONATOR_DEBUG_TELEGRAM_BOT_TOKEN="debug_bot_token_here" - Build image
make docker_build - Run image
make docker_run
- The use of
fmt.Errorf("error: %v", err)instead offmt.Errorf("error: %w", err)is due to the fact that this error is not unwrapped anywhere above.