Git Product home page Git Product logo

videocompress's Introduction

VideoCompress

GitHub Repo stars GitHub forks GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub contributors GitHub repo size GitHub commit activity GitHub Bot Support

A Telegram Video Compressor Bot By @AbirHasan2005. This bot works for all! No need to define each user IDs to use bot. Also works in Group.

Special Features:

  • Bot's Live Status on Channel
  • Force Sub to Channel
  • Database:
    • Can Broadcast messages
    • Can Ban-Unban Manually
    • Can see numbers users in DB
  • If you need more help to Deploy Feel Free to ask in Support Group.

Demo Bot:

Demo Logs Channel:

Easy Deploy:

Video Tutorial:

YouTube

Support Group:

Required Configs:

  • SESSION_NAME - Any name of session. Better keep default.
  • TG_BOT_TOKEN - Get this from @BotFather
  • LOG_CHANNEL - Put Your Bot's Logs Channel's Username. For Help ask in Support Group.
  • BOT_USERNAME - Your Bot's Username which you send to @BotFather while creating Bot. (Without @ Before Username!!)
  • APP_ID - Get this from my.telegram.org
  • API_HASH - Get this from my.telegram.org
  • DATABASE_URL - Your MongoDB Database URL.
  • AUTH_USERS - Put your ID & other Sudo Users IDs. Separate with Space. Just for using Admin Commands.

Optional Configs:

  • UPDATES_CHANNEL - Put your Channel Username which you want to do Force Sub. But bot should be Admin in that channel. If got any error or not understand anything than ask in Support Group.
  • COMMAND_EXEC - /exec Command Handler.
  • COMMAND_STATUS - /status Command Handler.
  • COMMAND_CANCEL - /cancel Command Handler.
  • COMMAND_COMPRESS - /compress Command Handler.
  • COMMAND_START - /start Command Handler.
  • COMMAND_HELP - /help Command Handler

Public Commands:

start - Start Bot
compress - Compress Video
help - How to Use Bot

Admin Commands:

cancel - Cancel Last Process
status - Total User Number in Database
broadcast - Reply to Message to Broadcast
ban_user - Ban A User with time & reason
unban_user - Unban a User
banned_users - Show Banned Users
exec - EXEC ๐Ÿ™„

Follow on:

Credits:

videocompress's People

Contributors

abirhasan2005 avatar artemiszuk avatar mrbotdeveloper avatar mrvishal2k2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

videocompress's Issues

queue

please make queue system so video will automatically encode after done previous process

Error

Bot is only replying a single line. Something went wrong

google drive support

HI;
does it have google drive/team drive support?
i mean can we compress videos from td?

IF not than kindly consider adding that feature.

Upload Issue

Bot Sometimes Shows Errors While Uploading to Telegram:

2020-12-23T18:02:55.838153+00:00 app[worker.1]: 23-Dec-20 23:32:55 - pyrogram.methods.advanced.save_file - ERROR - 
2020-12-23T18:02:57.571486+00:00 app[worker.1]: 23-Dec-20 23:32:57 - pyrogram.session.session - WARNING - [5] Retrying "upload.SaveBigFilePart" due to 
2020-12-23T18:02:58.929620+00:00 app[worker.1]: 23-Dec-20 23:32:58 - pyrogram.session.session - WARNING - [5] Retrying "upload.SaveBigFilePart" due to 
2020-12-23T18:02:58.930360+00:00 app[worker.1]: 23-Dec-20 23:32:58 - pyrogram.methods.advanced.save_file - ERROR - 
2020-12-23T18:02:58.930712+00:00 app[worker.1]: 23-Dec-20 23:32:58 - pyrogram.session.session - WARNING - Server sent "-404"
2020-12-23T18:02:59.556298+00:00 app[worker.1]: 23-Dec-20 23:32:59 - pyrogram.session.session - WARNING - [5] Retrying "upload.SaveBigFilePart" due to 
2020-12-23T18:02:59.556830+00:00 app[worker.1]: 23-Dec-20 23:32:59 - pyrogram.methods.advanced.save_file - ERROR - 

If you can fix it please contact in my Telegram Group.

Cancel Command Shows Error Sometimes

Cancel Command Shows Error Sometimes. But Last Process Really Cancels. Don't Know Why Error Coming. It's Like:

2020-12-24T08:00:35.943270+00:00 app[worker.1]: 24-Dec-20 13:30:35 - asyncio - DEBUG - Using selector: EpollSelector
2020-12-24T08:00:48.209099+00:00 app[worker.1]: 24-Dec-20 13:30:48 - bot.plugins.incoming_message_fn - INFO - /app/downloads/407274643.FFMpegRoBot.mkv
2020-12-24T08:00:58.182227+00:00 app[worker.1]: 24-Dec-20 13:30:58 - bot.plugins.incoming_message_fn - INFO - /app/downloads/407274643.FFMpegRoBot.mkv
2020-12-24T08:00:59.100707+00:00 app[worker.1]: 24-Dec-20 13:30:59 - bot.helper_funcs.ffmpeg - INFO - ffmpeg_process: 30
2020-12-24T08:02:50.390026+00:00 app[worker.1]: 24-Dec-20 13:32:50 - bot.plugins.incoming_message_fn - INFO - /app/downloads/715779594.FFMpegRoBot.mkv
2020-12-24T08:03:27.968345+00:00 app[worker.1]: 24-Dec-20 13:33:27 - bot.plugins.call_back_button_handler - INFO - 715779594
2020-12-24T08:03:28.690803+00:00 app[worker.1]: 24-Dec-20 13:33:28 - pyrogram.dispatcher - ERROR - [Errno 2] No such file or directory: '/app/downloads/progress.txt'
2020-12-24T08:03:28.690833+00:00 app[worker.1]: Traceback (most recent call last):
2020-12-24T08:03:28.690833+00:00 app[worker.1]:   File "/usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py", line 208, in handler_worker
2020-12-24T08:03:28.690834+00:00 app[worker.1]:     await handler.callback(self.client, *args)
2020-12-24T08:03:28.690834+00:00 app[worker.1]:   File "/app/bot/plugins/incoming_message_fn.py", line 205, in incoming_compress_message_f
2020-12-24T08:03:28.690835+00:00 app[worker.1]:     o = await convert_video(
2020-12-24T08:03:28.690836+00:00 app[worker.1]:   File "/app/bot/helper_funcs/ffmpeg.py", line 95, in convert_video
2020-12-24T08:03:28.690837+00:00 app[worker.1]:     with open("/app/downloads/progress.txt",'r+') as file:
2020-12-24T08:03:28.690837+00:00 app[worker.1]: FileNotFoundError: [Errno 2] No such file or directory: '/app/downloads/progress.txt'

If you can fix this than please contact us in Telegram Group.

Yandex Disk

I suggest adding the ability to compress files from Yandex Disk (https://360.yandex.ru/disk/) or Google Drive. It is very useful feature, especially after the introduction of telegram premium subscription and sending speed limits. You also can add sending archives with many files copied from cloud service.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.