Cool project for fun!! โ This Smart Telegram Bot is built using Telegraf.js, Express.js (for webhook) and connected with OpenAI API (ChatGPT). Are you new to Telegram bot? read the official introduction for Developers written by the Telegram team.
Create a new bot with @BotFather and join OpenAI for API key.
![]() |
![]() |
![]() |
![]() |
$ git clone https://github.com/febriadj/telegram-bot.git
Clone and open this repository in your IDE or text editor.
$ mv .env.example .env
Rename the .env.example
file to .env
and complete the required "environment variables".
$ npm install
$ npm run prepare && npm run build
$ npm start
See more commands in package.json
.