Skip to content

A template for Telegram bot in JavaScript using grammY

License

Notifications You must be signed in to change notification settings

agam778/Telegram-JavaScript-Bot

Repository files navigation

Telegram-JavaScript-Bot

This repository is a template for creating a Telegram bot in JavaScript. It uses grammY

Features:

  • Categories for commands
  • Command handler (add commands in commands)
  • Error handler
  • Command aliases (check 8ball command, can add multiple aliases)

Commands

  • /start - Start the bot

Categories

Utilities

  • /help - Show help

Fun

  • /8ball - Ask the magic 8-ball a question

Environment Variables

  • BOT_TOKEN - Telegram bot token, get it from @BotFather

Deploying

Deploy on Railway

OR

  • Clone this repository
  • Update the .env.example file with your BOT_TOKEN
  • Rename the file by removing the .example extension.
  • Install dependencies: yarn
  • Start the bot: yarn start

License

Telegram-JavaScript-Bot is licensed under the MIT License

About

A template for Telegram bot in JavaScript using grammY

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published