A telegram chatbot to query your own hosted image
- Receive command -> query db and get s3 url -> get object -> send object to telegram
- Create config.yml from config.tmp.yml and replace with your configuration
- Currently using cloudflare r2
- Replace s3 config in config.yml
- Use any s3 provider, or self hosted if you want, and add your own interface in ./external/s3
- Custom 3rd-party APIs in config, the input is REST dynamic
- Init mysql and create folder ./objects inside repo, put your images inside that folder
- Replace mysql config in config.yml
- Run:
go run ./cmd/main.go jsin-migrationand it will migrate your images to bucket
- Create your telegram bot with BotFather, remember to allow it to send message, group settings, ...
- Replace your bot config in config.yml
- Run:
go run ./cmd/main.go jsin-telegramand your bot is up and running
go build ./cmd/main.goordocker build -t jsin .then docker-compose (or just docker run it!)