DEV Community

Cover image for Create a Telegram Bot with node
Patryk Rzucidło
Patryk Rzucidło

Posted on

1

Create a Telegram Bot with node

🤖 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 Rzucidło (@PTKDev) <support@ptkdev.io>

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay