Skip to content

A web-appilcation developed on the .NET 5.0. The main idea of the telegram bot is to show that creating bots is a very simple and at the same time useful solution for business and etc.

License

Notifications You must be signed in to change notification settings

MikhailMasny/short-link-telegram-bot

Repository files navigation

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.

About

A web-appilcation developed on the .NET 5.0. The main idea of the telegram bot is to show that creating bots is a very simple and at the same time useful solution for business and etc.

Topics

Resources

License

Stars

Watchers

Forks