Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot Bot

Typing SVG


umz rename bot

Sample Bot ( Screenshot - Bot )

umz screenshot gen bot

🚀 Features

  • Accepts .mp4 and .mkv files sent as video or document
  • Allows user to select 1–20 evenly spaced screenshots
  • Returns screenshots as a Telegram media group
  • /start, /help, /cancel, /stats, and /broadcast commands
  • Stores user data and stats in MongoDB
  • Logs every request to a private log channel
  • Admin-only /broadcast and /stats commands
  • Docker-ready with health check endpoint

📚 Requirements

  • Python 3.10+
  • FFmpeg (included in Docker image)
  • MongoDB (MongoDB Atlas or local)
  • Telegram Bot Token
  • Telegram API ID & Hash from my.telegram.org

📦 Setup Instructions

1. Clone the repository

git clone https://github.com/Chamindu-Gayanuka/Screenshot-Bot.git
cd Screenshot-Bot

2. Install dependencies

pip install -r requirements.txt

3. Configure environment variables

API_ID = your_api_id
API_HASH = your_api_hash
BOT_TOKEN = your_bot_token
ADMIN_ID = your_telegram_user_id
MONGODB_URI = your_mongodb_uri
LOG_CHANNEL = -100xxxxxxxxxx  # Telegram Channel ID for logging

4. Bot Commands

start - Start the bot
help - Show instructions
cancel - Cancel the current upload
stats - Show usage stats (admin only)
broadcast - Broadcast a message to all users (admin)

🚀 Deployment

Deploy on Koyeb

📝 Note

  • Make sure to set the environment variables in your deployment platform.
  • For local testing, you can run the bot using:
python bot.py

©️ License

This project is licensed under the MIT License. See the 𝙇𝙄𝘾𝙀𝙉𝙎𝙀 file for details.

🙏 Acknowledgements

❣️ Special Thanks 👍

Last Updated

  • 05-06-2025 09:30 AM

About

A powerful Telegram bot that lets users extract evenly spaced screenshots from videos.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages