Skip to content

tcpbots/newbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoFile Uploader Telegram Bot

A comprehensive Telegram bot for uploading files to GoFile.io with advanced features including download from URLs, progress tracking, quality selection, force subscription, admin commands, and MongoDB database integration.

Features

  • File Upload: Upload any file sent to the bot to GoFile.io
  • URL Download: Download from URLs (including YouTube) and upload to GoFile.io
  • Progress Tracking: Real-time upload/download progress bars
  • Quality Selection: Choose video/audio quality when multiple options available
  • Force Subscription: Require users to join a channel before using the bot
  • Admin Commands: Broadcast, stats, user management, ban/unban
  • User Management: MongoDB database for user data and settings
  • Async Processing: Handle multiple tasks concurrently
  • GoFile.io Account Integration: Support for user GoFile.io accounts

Installation

  1. Install required packages:
pip install -r requirements.txt
  1. Set up MongoDB database
  2. Configure environment variables in config.py
  3. Run the bot:
python bot.py

File Structure

  • bot.py - Main bot initialization and startup
  • config.py - Configuration and environment variables
  • database.py - MongoDB operations and models
  • handlers.py - All bot command and message handlers
  • utils.py - Utility functions for file operations and API calls
  • requirements.txt - Required Python packages

Commands

User Commands

  • /start - Start the bot and register
  • /help - Show available commands
  • /upload - Upload file to GoFile.io (reply to file)
  • /download <url> - Download from URL and upload to GoFile.io
  • /settings - User preferences and account management
  • /myfiles - List user's uploaded files
  • /account - GoFile.io account integration
  • /stats - Personal usage statistics

Admin Commands

  • /admin - Access admin panel
  • /broadcast <message> - Broadcast message to all users
  • /stats_admin - Bot statistics and analytics
  • /users - List all users
  • /ban <user_id> - Ban a user
  • /unban <user_id> - Unban a user
  • /force_sub - Configure force subscription settings

Environment Variables

Set these in your config.py file:

  • BOT_TOKEN - Your Telegram bot token
  • MONGO_URI - MongoDB connection string
  • ADMIN_IDS - List of admin user IDs
  • FORCE_SUB_CHANNEL - Channel username for force subscription
  • GOFILE_API_TOKEN - GoFile.io API token (optional)

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages