A telegram bot for creating secure, token-gated communities with built-in governance, analytics and AI assistance with support for Ethereum and Solana networks.
Important
This project was first built as a paid project for an anonymous user (under a different name). With their permission, I’ve refactored it a bit and open-sourced it here as Paladin. The bot works fine for the most part, though you might run into a few small issues. Just a heads-up: it’s not meant to be production-ready.
- Normal Verification: Captcha-protected web verification (like SafeGuard bot)
- Pay Only: Simple payment verification for group access
- Token Holdings: Verify minimum token amounts in user wallets
- NFT Holdings: Verify NFT ownership for exclusive access
- Combined Methods: Mix payment + token + NFT requirements
- Multi-Chain: Support for Ethereum (ETH) and Solana (SOL)
- Auto-Monitoring: Continuous verification of token holdings
- Secure Polls: Only verified token holders can participate
- Real-time Results: Live poll tracking and vote counting
- Proposal System: Community-driven decision making
- User Analytics: Track member activity and engagement metrics
- Message Analytics: Group activity insights with detailed statistics
- Token Analytics: Real-time token data integration
- Performance Metrics: Comprehensive bot usage and group health stats
- Smart Queries: AI-powered responses about your token/project
- Contextual Help: Answers questions using project-specific data
- Token Integration: Combines market data with project information
- Market Analytics: Liquidity, market cap, and trading volume data
- Chart Generation: Visual analytics and performance charts
/new- Set up group protection and verification/verify- Start verification process for governance participation/analytics- View comprehensive group analytics/t_analytics- Get token-specific analytics and market data/u_analytics- View user activity and engagement analytics/m_analytics- Message analytics with chart generation/ask- Query the AI assistant about your project/new_poll- Create governance polls for verified members
/start- Welcome message and setup instructions/new- Set up protection for groups you administrate
git clone https://github.com/alok8bb/paladin.git
cd paladinCreate a .env file with the following:
BOT_TOKEN=your_telegram_bot_token
DATABASE_URI=mongodb://localhost:27017/paladin
HELIUS_API_KEY=your_helius_api_key
OPENAI_API_KEY=your_openai_api_key
VERIFY_WEB_URL=https://your-verification-site.comClone and deploy the verification web interface:
git clone https://github.com/alok8bb/paladin-verify-page
# Follow the setup instructions in that repositorydeno task dev- Runtime: Deno
- Framework: Grammy (Telegram Bot Framework)
- Database: MongoDB with Mongoose
- Blockchain: Ethers.js (Ethereum), Solana Web3.js (Solana)
- AI: OpenAI GPT-4 API
- APIs: Helius (Solana), DexScreener (Price Data)
- Web: Oak (HTTP Server), Cloudflare (Verification)
MIT License - see LICENSE file for details.

