Open Source · Self-Hosted · TypeScript

Bring Devin AI to your Telegram Chats or Groups

Launch coding sessions with a /devin command, continue the conversation in the same chat with adaptive polling, and handle PRs, tests, and bug fixes without leaving your chats.

Devin
Devin AI bot bot · online
warengonzaga

/devin Write a Python script that fetches top stories from Hacker News

10:42 AM

On it! Writing a Python script to fetch top stories from the Hacker News API now. πŸš€

10:42 AM

Session started

Working · fetching from Hacker News API

Features

Everything you need to integrate Devin AI into your Telegram workflow

⚑

Chat Commands

Start sessions, reply, stop, list active sessions, and use templates with intuitive slash commands.

πŸ’¬

In-Chat Continuation

Non-command text in a chat with an active session is automatically forwarded to Devin.

πŸ”

Adaptive Polling

Fast updates during active work, slower when idle. Efficient and always up to date.

πŸ“‹

Template System

Pre-built templates for common tasks: PRs, code reviews, tests, and bug fixes.

πŸ””

PR Notifications

Shares pull request URLs from Devin sessions directly back into the chat.

🎨

Customizable Bot Name

Set BOT_NAME to customize how the bot refers to Devin in user-facing text.

πŸ”„

Restart Recovery

Active session state survives bot restarts via PostgreSQL persistence.

🏠

Self-Hosted

Full control over your data and deployment. Run it on your own infrastructure.

πŸ”

Group & DM Support

Works in one-on-one DMs and group chats, tracking sessions per chat context.

Commands

Interact with Devin directly from Telegram

/devin <task>

Start a new Devin session with a freeform task description

/template <id> <details>

Start a session from a pre-built template for common workflows

/reply <message>

Send a follow-up message to Devin in the active session

/stop

Terminate the active session in the current chat

/sessions

List all currently active Devin sessions being tracked

free text

Type any non-command message in a chat with an active session to continue the conversation

Templates

Get started quickly with pre-built prompts for common tasks

πŸ”€

Open a PR

Write code and open a pull request with a single command.

open-pr
πŸ”

Code Review

Review an existing pull request for issues and suggestions.

code-review
πŸ§ͺ

Write Tests

Add test coverage to your repository quickly and efficiently.

write-tests
πŸ›

Fix a Bug

Investigate and fix bugs with Devin's help.

fix-bug

Status Indicators

Always know what Devin is doing with color-coded session states

Working

Devin is actively working on your task

Blocked

Devin needs input or clarification

Finished

Task completed successfully

Error

Session expired, stopped, or failed

Tech Stack

Built with modern, reliable technologies

Language
TypeScript 5.8+
Runtime
Node.js 22+
Framework
Telegraf v4
Toolchain
Bun
Linter
Biome
Database
PostgreSQL 14+
Testing
Bun Test
Storage
pg

Quick Start

Get up and running in minutes

1

Clone and install

git clone https://github.com/wgtechlabs/devin-telegram-bot.git
cd devin-telegram-bot
bun install
2

Configure

cp .env.example .env

Edit .env with your Telegram bot token (from @BotFather), database URL, and Devin API key.

3

Run

# Development (with hot reload)
bun run dev

# Production
bun run build
bun run start

Or deploy instantly with one click:

Deploy on Railway

Deploying via Railway directly supports the project and ongoing maintenance.

Ready to bring Devin AI to your Telegram?

Open source, self-hosted, and built for developer teams.

Using Railway to deploy helps support this project directly.