A Telegram bot that provides information and assistance related to blockchain technology and cryptocurrency using OpenAI's GPT models.
- 🤖 AI-Powered Responses: Intelligent responses using OpenAI's GPT-4 model
- 🔗 Blockchain Expertise: Specialized in blockchain technology and cryptocurrency
- 🛠️ Comprehensive Tools: Access to various blockchain and crypto tools
- 📊 Market Information: Real-time crypto market data and price tracking
- 💰 Token Management: Create and manage your own tokens
- 👤 Account Management: Full account control and management
- 🎨 NFT Creation: Create and manage your NFTs
- 📰 News Updates: Stay updated with latest blockchain news
- 🔍 Web Search: Real-time information search capabilities
The bot comes equipped with the following tools:
- Web Search: Search the web for real-time information
- Token Price: Get current prices of cryptocurrencies
- Token Management: Create and manage tokens
- Account Management:
- Create new accounts
- Get account information
- Get detailed account data
- Switch between accounts
- NFT Creation: Create and manage NFTs
- News Updates: Get the latest blockchain and crypto news
- Clone this repository
- Install the required packages:
pip install -r requirements.txt - Set up your environment variables in a
.envfile:TELEGRAM_BOT_TOKEN=your_telegram_bot_token OPENAI_API_KEY=your_openai_api_key - Run the bot:
python main.py
For development, you can use the auto-restart functionality that watches for file changes:
python run_dev.py
Or use the convenient bash script, which also handles the virtual environment setup:
./dev.sh
This will:
- Start the bot
- Monitor all Python files in the project directories
- Automatically restart the bot when any source file changes
- Provide logging information about restarts
/start- Start the bot/help- Show help message with information about what the bot can do
main.py- Entry point for the applicationbot/- Contains the Telegram bot implementationagent/- Contains the OpenAI agent implementationtools/- Contains various tools for blockchain and crypto operations
- Python 3.8+
- python-telegram-bot
- python-dotenv
- openai
- langchain
- langchain-openai