Skip to content

Yggdrasills/TelegramBotTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template for Telegram Bot

A simple template for creating a telegram bot via Сommand pattern.

Repository uses Telegram.Bot and Newtonsoft.Json libraries

Getting started

  1. Fill Settings section in appsettings.json:

    • Enter telegram bot token: "Token": "put_token_here"
    • Enter application url: "ApplicationUrl": "https://example.com/{0}". Don't forget "\{0}" at the end to define the path to the controller
  2. Add more UpdateTypes and Commands to Bot.cs to expand functionality.

  3. Program for opening external access to the port to test this template - Ngrok

    1. Open tunel with ngrok http 80 or another port defined in launchSettings.json
    2. Set ApplicationUrl in appsettings.json
    3. Run program

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages