https://github.com/opencars/bot
:blue_car: Telegram bot for vehicle search
https://github.com/opencars/bot
bot concurrency golang ngrok open-data telegram ukraine
Last synced: 5 months ago
JSON representation
:blue_car: Telegram bot for vehicle search
- Host: GitHub
- URL: https://github.com/opencars/bot
- Owner: opencars
- License: mit
- Created: 2018-12-29T22:22:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-13T20:30:05.000Z (over 3 years ago)
- Last Synced: 2025-08-14T13:27:54.346Z (10 months ago)
- Topics: bot, concurrency, golang, ngrok, open-data, telegram, ukraine
- Language: Go
- Homepage: https://t.me/opencarsbot
- Size: 210 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bot
[](https://goreportcard.com/report/github.com/opencars/bot)
> :blue_car: Bot will help to find a dream vehicle
## Overview

List of supported environment variables
| Name | Description |
| ---------------- | ------------------ |
| `HOST` | Web server host |
| `TELEGRAM_TOKEN` | Telegram API token |
| `AUTO_RIA_TOKEN` | AutoRia API token |
| `AUTO_RIA_TOKEN` | AutoRia API token |
## Development
Start postgres database
```sh
docker-compose up -Vd postgres
```
Migrate database
```sh
migrate -path=migrations -database "postgres://postgres:password@localhost/bot?sslmode=disable" up
```
Prerequisites:
- [Ngrok](https://ngrok.com/).
Expose your local web server for receiving http requests
```sh
ngrok http 80
```
Export ngrok host
```sh
export HOST=
```
You can run the bot with command below
```sh
go run cmd/bot/main.go --port=80
```
## License
Project released under the terms of the MIT [license](./LICENSE).