- Add TELEGRAM_GROUP_IDS configuration setting to enable optional group/channel filtering - Add _is_group_enabled() authorization check to all command handlers - Add group/channel authorization check to message_handler - All handlers now verify both user authorization and group authorization - If TELEGRAM_GROUP_IDS is not configured, bot accepts messages from any group - If TELEGRAM_GROUP_IDS is configured, bot only processes messages from those groups This enables the bot to be used in group chats and channels with Topics/Threads support.
15 lines
553 B
YAML
15 lines
553 B
YAML
services:
|
|
steward:
|
|
# image: ghcr.io/djw4/steward:latest
|
|
# To build locally instead: uncomment the next line and comment out image above
|
|
build: .
|
|
user: "1000:1000" # matches the UID/GID created in the Dockerfile
|
|
env_file: .env # copy .env.example → .env and fill in your values
|
|
environment:
|
|
THREAD_MEMORY_PATH: /data/thread_memory.json
|
|
volumes:
|
|
# Bind-mount a local ./data directory for persistent storage.
|
|
# Create it before the first run: mkdir -p data
|
|
- ./data:/data
|
|
restart: unless-stopped
|