The main idea of the web application is to develop a telegram bot for quickly create a short link. This repository can also serve as a template for creating a specific bot with its subsequent publication on the Internet.
When you start interacting with the Telegram Bot, the user can use the "/ start" command, after which it is enough to follow the instructions and use the bot that performs certain commands and tasks.
For the correct functioning of Telegram Bot, it is necessary to update the appsettnigs.json file in the root directory of the web project, filled in according to the template below.
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"Url": "https://your-url-app.herokuapp.com",
"Token": "your-telegram-token"
}
To start the entire infrastructure, you must run the following commands from the project folder:
heroku login
docker build -t short-link-generator-bot .
docker tag short-link-generator-bot registry.heroku.com/short-link-generator-bot/web
heroku container:login
heroku container:push web -a short-link-generator-bot
heroku container:release web -a short-link-generator-bot
Mikhail M. - Software Engineer;
This project is licensed under the MIT License - see the LICENSE.md file for details.