An assistant bot for Telegram
Make sure that you have installed PostgreSQL and Redis.
Download binary:
$ curl -L https://github.com/rossnomann/assistant/releases/download/0.3.0/assistant-0.3.0_x86_64-linux-gnu --output assistant
$ chmod +x assistant
Create config.yaml
:
token: 'bot-token' # Token from BotFather
database_url: postgresql://user:password@localhost:5432/database # PostgreSQL connection
session_url: redis://127.0.0.1:6379 # Redis connection
users: # ID of users who has access to this bot
- 100000000
- 200000000
- 300000000
If you want to change log level, use RUST_LOG
environment variable.
Run migrations:
$ ./assistant config.yaml migrate
Start bot:
$ ./assistant config.yaml start
- Updated carapax to 0.14.
- Updated redis to 0.24.
- Updated tokio to 1.35.
- Updated carapax to 0.13.
- Updated clap to 4.4.
- dotenv replaced by dotenvy.
- Updated redis to 0.23.
- Updated tokio to 1.34.
- First release.
The MIT License (MIT)