├── .gitignore ├── Aptfile ├── Config.py ├── Procfile ├── README.md ├── app.json ├── bot.pyc ├── requirements.txt └── runtime.txt /.gitignore: -------------------------------------------------------------------------------- 1 | t.py 2 | log.txt 3 | main.py -------------------------------------------------------------------------------- /Aptfile: -------------------------------------------------------------------------------- 1 | tzdata 2 | curl -------------------------------------------------------------------------------- /Config.py: -------------------------------------------------------------------------------- 1 | import os 2 | 3 | # Bot token from @botfather 4 | BOT_TOKEN = os.environ.get("BOT_TOKEN") 5 | # From my.telegram.org/ 6 | API_ID = int(os.environ.get("API_ID", 0)) 7 | API_HASH = os.environ.get("API_HASH") 8 | # For /log cmd 9 | OWNER_ID = [int(i) for i in os.environ.get("OWNER_ID", "1204927413").split(" ")] 10 | # No time limit for this users 11 | AUTH_USERS = [int(i) for i in os.environ.get("AUTH_USERS", "1204927413").split(" ")] 12 | # Time gap after each request (in seconds) 13 | TIME_GAP = int(os.environ.get("TIME_GAP", "360")) 14 | # Bot channel ID for ForceSub, don't forget to add bot in Bot Channel 15 | UPDATES_CHANNEL = os.environ.get("UPDATES_CHANNEL", False) -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | worker: python3 bot.pyc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # live recdoring bot 2 | A bot to record live videos using its URL, eg. IPTV, youtube live stream, m3u8/mpd links, etc. 3 | 4 | Note:- Only none DRM links supported 5 | 6 | ### BOT LINK: 7 | 8 | 9 | ### Deploy to heroku 10 | 11 | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://dashboard.heroku.com/new?template=https://github.com/Jigarvarma2005/Live-Recording-Bot) 12 | 13 | ### Follow on: 14 |

15 | 16 |

17 |

18 | 19 |

20 |

21 | 22 |

23 | 24 | #### Note:- This is trial -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "API_ID": {"description": "Get this value from https://my.telegram.org"}, 4 | "API_HASH": {"description": "Get this value from https://my.telegram.org"}, 5 | "BOT_TOKEN": {"description": "Get this from https://t.me/botfather"}, 6 | "OWNER_ID": { 7 | "description": "For /log cmd", 8 | "required": false}, 9 | "AUTH_USERS": { 10 | "description": "[Users Ids] No time limit for this users", 11 | "required": false}, 12 | "TIME_GAP": { 13 | "description": "Time gap after each request (in seconds)", 14 | "required": false}, 15 | "UPDATES_CHANNEL": { 16 | "description": "Bot channel ID for ForceSub, don't forget to add bot in Bot Channel", 17 | "required": false} 18 | }, 19 | "stack": "heroku-22", 20 | "buildpacks": [ 21 | {"url": "https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git"}, 22 | {"url": "https://github.com/heroku/heroku-buildpack-apt.git"}, 23 | {"url": "heroku/python"} 24 | ] 25 | } -------------------------------------------------------------------------------- /bot.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jigarvarma2k20/Live-Recording-Bot/45fec81a0a411ddb9cf0209fa1afe278d7646d54/bot.pyc -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pyrogram 2 | tgcrypto 3 | asyncio 4 | hachoir 5 | requests 6 | yt-dlp -------------------------------------------------------------------------------- /runtime.txt: -------------------------------------------------------------------------------- 1 | python-3.10.5 --------------------------------------------------------------------------------