This is a simple Telegram bot that uses the Groq API to generate responses to user messages. The bot is built using Node.js and the node-telegram-bot-api
and groq-sdk libraries.
To run this bot, you will need:
- A Telegram bot token
- A Groq API key
Replace YOUR_TELEGRAM_TOKEN
and YOUR_GROQ_API_KEY
with your respective tokens and keys.
- Install Node.js and npm.
- Clone this repository.
- Replace
YOUR_TELEGRAM_TOKEN
andYOUR_GROQ_API_KEY
with your respective tokens and keys. - Run the bot by executing
node main.js
- If have any error run this
npm install node-telegram-bot-api --save groq-sdk