A minimal Telegram Bot powered by OpenAI (ChatGPT) — ready to clone and deploy in 5 minutes ⚡
- ChatGPT integration via OpenAI API
- Auto replies to messages in Telegram
- Clean Node.js structure
.envsupport for easy configuration
git clone https://github.com/mcieric/telegram-ai-bot-template
cd telegram-ai-bot-template
npm installCopy the example file:
cp .env.example .envThen edit .env with your keys:
- Get a Telegram bot token from @BotFather
- Get an OpenAI API key from platform.openai.com
node bot.jsIn Telegram:
You: Hello bot
ZenBot: Hey Zen ⚡ How can I assist you today?
- Node.js
- OpenAI API
- node-telegram-bot-api
If this helped you, please ⭐ star this repo — it means a lot!
Made with ❤️ by Zeneric
