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.gitClone and open this repository in your IDE or text editor.
$ mv .env.example .envRename the .env.example file to .env and complete the required "environment variables".
$ npm install$ npm run prepare && npm run build$ npm startSee more commands in package.json.
