Deploy superb-nurturing
bot for transform link from inst
transform_insta_link
Genexys/transform_insta_link
Just deployed
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 - Create bot and get token
- InstaFix GitHub - Reference for alternative Instagram domains
- Node Telegram Bot API - Core bot functionality
Implementation Details
The bot uses regex pattern matching to detect Instagram URLs:
const instagramRegex = /(https?:\/\/)?(www\.)?(instagram\.com|instagr\.am)\/(p|reel|tv)\/([A-Za-z0-9_-]+)\/?(\?[^\s]*)?/gi;
It then converts domains to working alternatives:
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.
Template Content
transform_insta_link
Genexys/transform_insta_link