Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stonega/telegram-javascript-bot
https://github.com/stonega/telegram-javascript-bot
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/stonega/telegram-javascript-bot
- Owner: stonega
- License: mit
- Created: 2023-10-26T01:07:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-26T01:07:16.000Z (about 1 year ago)
- Last Synced: 2024-12-15T13:49:10.559Z (about 1 month ago)
- Language: JavaScript
- Size: 1.79 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram-JavaScript-Bot
This repository is a template for creating a Telegram bot in JavaScript. It uses [grammY](https://grammy.dev)
# Features:
- Categories for commands
- Command handler (add commands in [commands](./commands))
- Error handler
- Command aliases (check [8ball](./commands/8ball.js) 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](https://t.me/BotFather)# Deploying
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/5lRkWa?referralCode=agam778)
OR
- Clone this repository
- Install dependencies: `yarn`
- Start the bot: `yarn start`# License
Telegram-JavaScript-Bot is licensed under the [MIT License](./LICENSE)