Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 2.26 KB

README.md

File metadata and controls

57 lines (41 loc) · 2.26 KB

LinkShortener [Telegram Bot]

.NET

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.

Getting Started

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.

Application settings

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"
}

Deployment Docker container on Heroku

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

Built with

Author

Mikhail M. - Software Engineer;

License

This project is licensed under the MIT License - see the LICENSE.md file for details.