This is a Telegram bot built with Node.js that acts as a Bitcoin Maximalist assistant. It uses the OpenAI API to generate responses to user messages and educate them about Bitcoin.
- Clone the repository:
git clone https://github.com/yourusername/bitcoin-maxi-bot.git
- Install dependencies:
npm install- Create a .env file in the root directory and add your Telegram Bot API key and OpenAI API key:
TELEGRAM_BOT_API_KEY=YOUR_TELEGRAM_BOT_API_KEY
OPEN_AI_API_KEY=YOUR_OPENAI_API_KEYRun the bot in developer mode with the following command:
npm run devRun the bot in production mode with the following command:
npm startThe bot will start listening for messages on Telegram. You can interact with it by sending messages to the bot in a Telegram chat.
- dotenv
- node-telegram-bot-api
- openai
This project is licensed under the MIT License.