The chatai-v bot uses Telegraf API to configure the Telegram bot and Whisper-1 transcription model together with the gpt-3.5-turbo model and express.js to start running your Telegram bot.
Clone the repository to your local machine, then create the .env
file in the root directory of the project and create the OPENAI_TOKEN
variable in it, and pass your private OpenAI token from your account at https://platform.openai.com, and create the TELEGRAF_TOKEN
variable in it, and pass your private token from your created bot using official create bots https://t.me/BotFather.
Install dependencies.
npm i
Start dev mode with nodemon.
npm run dev
Start running your bot.
npm run start