ChatBot Bridge for Telegram & WhatsApp
A Flask bridge that connects an OpenAI-powered bot to Telegram and WhatsApp.
- Status
- Finished and delivered. It does what it set out to do and no more work is planned.
- Kind
- API
- Started
- Sep 2023

About it
The problem
A business that wants an AI assistant on both Telegram and WhatsApp usually ends up building and maintaining two separate bots.
The approach
I built the same Flask and OpenAI approach for both: telegram-bot-openai receives Telegram messages, and its sibling whatsapp-bot-openai receives WhatsApp messages through Twilio, each passing the text to OpenAI and replying with the answer.
- A Flask webhook for incoming messages.
- Replies generated with the OpenAI API.
- Two platforms with the same shape of code.
The result
One AI backend pattern now serves both messaging platforms, halving the work of running a chatbot service.
What it does3
Message Routing
Two Platforms
AI Replies
More work

Rone Arena API
A public FastAPI for Mobile Legends hero data, analytics and player tools, with a web playground and SDKs.

BeliMadu.com
An online honey shop on Next.js 16 and Cloudflare Workers, with a WhatsApp-checkout cart and a Vitest suite.

ridwaanhall.com
This site: a portfolio and blog on Next.js 16 with an admin, Markdown versions of every page and a CV generated from the About page.
Comments0
Signed-in readers can comment.