https://github.com/rekt-developer/scripters-marketplace
Telegram bot automatically processes channel posts, saves them as structured JSON files, and generates SEO-optimized HTML pages for each post.
https://github.com/rekt-developer/scripters-marketplace
Last synced: about 2 months ago
JSON representation
Telegram bot automatically processes channel posts, saves them as structured JSON files, and generates SEO-optimized HTML pages for each post.
- Host: GitHub
- URL: https://github.com/rekt-developer/scripters-marketplace
- Owner: Rekt-Developer
- Created: 2024-12-03T17:24:58.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-03T18:22:31.000Z (6 months ago)
- Last Synced: 2025-02-05T09:37:54.599Z (3 months ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scripters Marketplace Telegram Bot
## Overview
This Telegram bot automatically processes channel posts, saves them as structured JSON files, and generates SEO-optimized HTML pages for each post.## Features
- Captures Telegram channel posts
- Saves post data as JSON files
- Generates individual HTML pages for each post
- SEO-friendly meta tags
- Deployable on Vercel## Prerequisites
- Node.js (v16+)
- Telegram Bot Token
- Vercel Account (optional)## Setup Instructions
### 1. Clone the Repository
```bash
git clone https://github.com/RektDevelopers/ScriptersMarketplace.git
cd ScriptersMarketplace
```### 2. Install Dependencies
```bash
npm install
```### 3. Configure Environment
1. Create a Telegram bot via BotFather on Telegram
2. Copy the bot token
3. Edit `.env` file:
```
BOT_TOKEN=your_telegram_bot_token
```### 4. Local Development
```bash
# Start development server
npm run dev# Start production server
npm start
```### 5. Deployment to Vercel
```bash
# Install Vercel CLI globally
npm install -g vercel# Login to Vercel
vercel login# Deploy
vercel deploy
```## Project Structure
- `index.js`: Main bot script
- `.env`: Environment configuration
- `vercel.json`: Vercel deployment settings
- `public/data/posts/`: JSON post storage
- `public/html/posts/`: Generated HTML pages## Security Notes
- Keep your bot token confidential
- Use environment variables for sensitive information
- Sanitize user inputs to prevent XSS## Troubleshooting
- Ensure bot has necessary channel permissions
- Check Telegram API limits
- Verify environment configurations## Contributing
1. Fork the repository
2. Create a feature branch
3. Commit your changes
4. Push to the branch
5. Create a Pull Request## License
MIT License