The main idea of the application is to develop a telegram bot, which helps you to find a company for coffee. You can select a specific user (by typing @username or sharing a contact) or a random registered user ("/random" command).
To start interacting with Telegram Bot, enter "/start" command and follow the instructions.
For the correct functioning of Telegram Bot, it is necessary to update the appsettings.json in the project root directory according to the template below:
{
"ConnectionStrings": {
"DefaultConnection": "Server=databaseServer;Port=5432;Database=databaseName;User Id=userName; Password=userPassword;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"Url": "https://your-url-app.herokuapp.com",
"Token": "your-telegram-token"
}
For the bot correct work, a database is required. To add PortgreQSL database on Heroku, run the following command:
heroku addons:create heroku-postgresql:hobby-dev
To start the entire infrastructure, you should run the following commands from the project folder:
docker build -t coffee-meet-bot .
docker tag coffee-meet-bot registry.heroku.com/coffee-meet-bot/web
heroku container:push web -a coffee-meet-bot
heroku container:release web -a coffee-meet-bot
This project is under the MIT License - see the LICENSE.md file for details.