---
title: "Deploy superb-nurturing"
description: "bot for transform link from inst"
category: "Bots"
url: https://railway.com/deploy/superb-nurturing
---

# Deploy superb-nurturing

bot for transform link from inst

**[Deploy superb-nurturing on Railway](https://railway.com/template/superb-nurturing)**

- **Creator:** Ilya Borisenko's Projects
- **Category:** Bots
- **Total deploys:** 4

## Template content

### transform_insta_link

- **Source:** Genexys/transform_insta_link

## Documentation

# Deploy and Host Telegram Instagram Fix Bot on Railway

A Telegram bot that automatically converts Instagram links to working preview links using InstaFix domains. When users share Instagram posts in Telegram chats, the bot detects these links and responds with fixed versions that display proper previews and media content.

## About Hosting Telegram Instagram Fix Bot

This bot runs continuously as a Node.js service using the Telegram Bot API. It monitors all messages in connected chats for Instagram URLs, then automatically responds with converted links that use alternative domains (like ddinstagram.com) to bypass Telegram's Instagram preview restrictions. The deployment includes TypeScript compilation, polling-based message handling, and environment variable configuration for the bot token.

## Common Use Cases

- Group chats where users frequently share Instagram posts that don't show previews
- Personal chats to quickly get working Instagram links without manual conversion
- Community channels where Instagram content sharing is common and preview functionality is important

## Dependencies for Telegram Instagram Fix Bot Hosting

- Node.js 18+ runtime environment
- Telegram Bot Token (obtained from @BotFather)
- node-telegram-bot-api package for Telegram integration

### Deployment Dependencies

- [Telegram BotFather](https://t.me/botfather) - Create bot and get token
- [InstaFix GitHub](https://github.com/Wikidepia/InstaFix) - Reference for alternative Instagram domains
- [Node Telegram Bot API](https://github.com/yagop/node-telegram-bot-api) - Core bot functionality

### Implementation Details

The bot uses regex pattern matching to detect Instagram URLs:
```javascript
const instagramRegex = /(https?:\/\/)?(www\.)?(instagram\.com|instagr\.am)\/(p|reel|tv)\/([A-Za-z0-9_-]+)\/?(\?[^\s]*)?/gi;
```

It then converts domains to working alternatives:
```javascript
function convertToInstaFix(url: string): string {
  return url.replace(/(instagram\.com|instagr\.am)/gi, 'ddinstagram.com');
}
```

Required environment variable:
- `TELEGRAM_BOT_TOKEN`: Your bot token from @BotFather

## Why Deploy Telegram Instagram Fix Bot on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Telegram Instagram Fix Bot on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Telegram JavaScript Bot](https://railway.com/deploy/5lRkWa) — A template for Telegram bot in JavaScript using grammY
- [Cobalt Tools [Updated Aug ’26]](https://railway.com/deploy/cobalt) — Cobalt Tools [Aug ’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

Open this page in a browser: https://railway.com/deploy/superb-nurturing
