A Telegram bot powered by Solana Agent Kit for interacting with the TRUMP token on Solana. Make trading great again!
- 💰 Get real-time TRUMP token prices using Jupiter API
- 💱 Swap tokens (SOL ↔ TRUMP) via Jupiter Exchange
- 🤖 AI-powered responses using DeepSeek
- 💼 Automatic wallet creation and management via Privy
- 🔐 Secure transaction signing and bundle submission via Jito
- 📊 Check wallet and token balances
- 🎯 Get information about Donald Trump and the TRUMP token
- Node.js v20.10.0 or higher
- pnpm
- PostgreSQL database
- Redis instance
- Telegram Bot Token (from @BotFather)
Create a .env
file with the following variables:
# API Keys
DEEPSEEK_API_KEY=
PERPLEXITY_API_KEY=
TELEGRAM_BOT_TOKEN=
# Blockchain
RPC_URL=
SOLANA_PRIVATE_KEY=
# Privy
PRIVY_APP_ID=
PRIVY_APP_SECRET=
PRIVY_AUTHORIZATION_PRIVATE_KEY=
# Database
DATABASE_URL=
REDIS_URL=
- Clone the repository:
git clone https://github.com/yourusername/trumpit.git
cd trumpit
- Install dependencies:
pnpm install
- Generate Prisma client:
npx prisma generate
- Run database migrations:
npx prisma migrate deploy
Start the development server:
pnpm dev
Build and start the production server:
pnpm build
pnpm start
Build the Docker image:
docker build -t trumpit .
Run the container:
docker run -d \
--name trumpit \
--env-file .env \
-p 8080:8080 \
trumpit
/start
- Display welcome message and available commands- Send any message to interact with the AI-powered bot
- Framework: Node.js with TypeScript
- Bot Framework: node-telegram-bot-api
- AI Models: DeepSeek
- Blockchain: Solana (Web3.js, SPL Token)
- DEX Integration: Jupiter Exchange
- Database: PostgreSQL with Prisma ORM
- Caching: Redis
- Wallet Management: Privy
- Transaction Processing: Jito Bundles
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License.