Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 897 Bytes

File metadata and controls

36 lines (24 loc) · 897 Bytes

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
  • Install dependencies: yarn
  • Start the bot: yarn start

License

Telegram-JavaScript-Bot is licensed under the MIT License