---
title: "Deploy Telegram JavaScript Bot"
description: "A template for Telegram bot in JavaScript using grammY"
category: "Bots"
url: https://railway.com/deploy/5lRkWa
---

# Deploy Telegram JavaScript Bot

A template for Telegram bot in JavaScript using grammY

**[Deploy Telegram JavaScript Bot on Railway](https://railway.com/template/5lRkWa)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/5lRkWa/manifest.json

- **Creator:** Agampreet Singh's Projects
- **Category:** Bots
- **Total deploys:** 294

## Template content

### Telegram JavaScript Bot

- **Source:** https://github.com/agam778/Telegram-JavaScript-Bot

## Documentation

Telegram-JavaScript-Bot is a simple Telegram bot made with 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)


## Similar templates

- [Cobalt Tools [Updated Oct ’26]](https://railway.com/deploy/cobalt) — Cobalt Tools [Oct ’26] (Media Downloader, Converter & Automation) Self Host
- [Telegram Gateway](https://railway.com/deploy/railway-telegram-gateway) — Multi-bot Telegram webhook gateway with WebSocket event streaming
- [Bullet Bot](https://railway.com/deploy/bullet-bot) — A trading bot for Bullet you own with your wallet and run from Claude.

Open this page in a browser: https://railway.com/deploy/5lRkWa
