DEV Community

loading...
Cover image for Create a Telegram Bot with node

Create a Telegram Bot with node

Patryk Rzucido
Javascript Developer - I make awesome Open Source software, bot, app and tools.
2 min read

node-telegram-bot-boilerplate

Create your telegram bot with this friendly boilerplate. Use this repository as template for your bot

https://github.com/ptkdev-boilerplate/node-telegram-bot-boilerplate

Menu

Features

  • [儭] Easy to use
  • [儭] MIT License
  • [儭] Make telegram bot with node
  • [儭] Friendly boilerplate + Github templates
  • [儭] Typescript + TSPaths preconfigured
  • [儭] Userfriendly folders tree
  • [儭] Prettiers and ESLint preconfigured
  • [儭] all-contributors-cli and all-shields-cli preconfigured
  • [儭] JEST Test preconfigured
  • [儭] Full async code
  • [儭] Github and Vscode dotfiles preconfigured
  • [儭] Translations: 突 氣 蛤 (Help me 歹)

Usage

  1. Clone this repository or download nightly, beta or stable.
  2. Write to @botfather on telegram and create new bot (save token and set bot username)
  3. Run with correct values: npm run init:token --username name_bot --token 1234:asdfghjkl
  4. Run npm run init
  5. Run npm run start-pm2

Developer Mode

Run Project

  1. Clone this repository or download nightly, beta or stable.
  2. Write to @botfather on telegram and create new bot (save token and set bot username)
  3. Run with correct values: npm run init:token --username name_bot --token 1234:asdfghjkl
  4. Run npm run init
  5. Run npm run dev

Setup Project

If you want replace all strings (example: package name, author, urls, etc...) in markdown file, source files and others files of this project you need edit setup.json with correct values and run npm run setup.

License

  • Code and Contributions have MIT License
  • Images and logos have CC BY-NC 4.0 License
  • Documentations and Translations have CC BY 4.0 License
Copyleft (c) 2021 Patryk Rzucido (@PTKDev) <support@ptkdev.io>

Discussion (0)

Forem Open with the Forem app