Skip to content
/ bot Public

๐Ÿš™ Telegram bot for vehicle search

License

Notifications You must be signed in to change notification settings

opencars/bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 13, 2023
7b1a45e ยท Feb 13, 2023
Sep 22, 2022
Feb 13, 2023
Apr 17, 2021
Mar 22, 2020
Feb 13, 2023
Feb 13, 2023
Feb 22, 2019
Jan 15, 2019
Jan 20, 2020
Sep 24, 2022
Nov 6, 2020
Mar 21, 2021
Nov 6, 2020
Apr 17, 2021
Sep 1, 2020
Feb 13, 2023
Feb 13, 2023
Mar 21, 2021

Repository files navigation

Bot

Report

๐Ÿš™ Bot will help to find a dream vehicle

Overview

Architecture 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

docker-compose up -Vd postgres

Migrate database

migrate -path=migrations -database "postgres://postgres:password@localhost/bot?sslmode=disable" up

Prerequisites:

Expose your local web server for receiving http requests

ngrok http 80

Export ngrok host

export HOST=<host>

You can run the bot with command below

go run cmd/bot/main.go --port=80

License

Project released under the terms of the MIT license.