Skip to content

shino369/telegram-bot-typescript-template

Repository files navigation

telegram-bot-typescript-template

Simple telegram bot written in node js with typescript.
Using Telegraf.js
You can add handler simply by adding file in to corresponding folder.
Basic handlers like command, photo and action are provided.

Since there are extremely few correct template for node.js using typescript (module import), you can use this for reference.
Keep in mind:

  • use "type": "module" in package.json
  • use .js for importing self-defined file
  import { ABC } from '../directory/index.js'
  • use ES2020 module

About

telegram bot typescript template based on Telegraf.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published