TeleSpam
No description available
Install / Use
/learn @CodeByStella/TeleSpamREADME
Telegram Userbot with OpenAI Integration
A powerful Telegram userbot that integrates with OpenAI to provide intelligent responses and automated messaging capabilities. Built with TypeScript and the Telegram API.
Features
- 🤖 Automated message handling and responses
- 🧠 OpenAI integration for intelligent conversations
- 📝 Message templates support
- 📊 Group management capabilities
- 🔄 Automatic chat list updates
- 🔐 Secure authentication handling
Prerequisites
- Node.js (v14 or higher)
- npm or yarn
- Telegram API credentials (api_id and api_hash)
- OpenAI API key
Installation
- Clone the repository:
git clone [your-repository-url]
cd TelegramSpam
- Install dependencies:
npm install
- Create a
.envfile in the root directory with the following variables:
TELEGRAM_API_ID=your_api_id
TELEGRAM_API_HASH=your_api_hash
OPENAI_API_KEY=your_openai_api_key
Configuration
The bot uses a config.ts file for various settings. You can customize:
- Message templates
- Response patterns
- Group management settings
- OpenAI configuration
Usage
- Start the development server:
npm run dev
- Build the project:
npm run build
- Start the production server:
npm start
Project Structure
src/index.ts- Main entry pointauth.ts- Authentication handlingconfig.ts- Configuration settingseventHandler.ts- Event handling logicfileManage.ts- File management utilitiesmessageTemplates.ts- Message template definitionssendMessages.ts- Message sending functionalityupdateChatlist.ts- Chat list management
Dependencies
telegram- Telegram API clientopenai- OpenAI API integrationdotenv- Environment variable managementtypescript- TypeScript supportnodemon- Development server with auto-reload
Security Notes
- Never commit your
.envfile - Keep your API keys secure
- Follow Telegram's terms of service
- Use the bot responsibly
License
ISC License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For support, please open an issue in the repository.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
