A simple telegram bot to save restricted content with custom thumbmail support by Mahesh Chauhan

Overview

Save Restricted Content Bot

A simple telegram bot to save restricted content with custom thumbmail support by Mahesh Chauhan.

Variables

  • API_ID
  • API_HASH
  • SESSION - Pyrogram string session Get pyrogram string session from BOT or Replit.
  • BOT TOKEN

Builpacks

  • heroku/python
  • https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

Issues

  • if you see any message like ERROR R12 in heroku logs, just restart.
  • CHANNEL INVALID if channel not joined.
  • if you face ERROR: Client has not been started yet then just send /start.

Deploy

if deploy button doesn't work, then deploy manually.

Comments
  • change ffmpeg to .....

    change ffmpeg to .....

    this repo will work on koyeb after removing ffmpeg for screenshot and adding http server to respond to koyebs url so that it is healthy( i will do this one)

    opened by ananth-28 3
  • Enhancements

    Enhancements

    Can You Please Add Alog Channel System Where We Can Monitor Users And Files That Are Being Downloaded If We Make This Bot Public. A Log Channel Where It Forwards All The Files.

    opened by BilliBoleMeow 3
  • ERROR: name 'os' is not defined

    ERROR: name 'os' is not defined

    2022-01-26T06:00:41.368904+00:00 app[Drone.1]: [ERROR/2022-01-26 06:00:41,367] pyrogram.dispatcher: expected string or bytes-like object 2022-01-26T06:00:41.368921+00:00 app[Drone.1]: Traceback (most recent call last): 2022-01-26T06:00:41.368922+00:00 app[Drone.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 222, in handler_worker 2022-01-26T06:00:41.368922+00:00 app[Drone.1]: await handler.callback(self.client, *args) 2022-01-26T06:00:41.368923+00:00 app[Drone.1]: File "/app/main/plugins/main.py", line 106, in clone 2022-01-26T06:00:41.368924+00:00 app[Drone.1]: link = get_link(event.text) 2022-01-26T06:00:41.368925+00:00 app[Drone.1]: File "/app/main/plugins/helpers.py", line 26, in get_link 2022-01-26T06:00:41.368925+00:00 app[Drone.1]: url = re.findall(regex,string) 2022-01-26T06:00:41.368926+00:00 app[Drone.1]: File "/app/.heroku/python/lib/python3.9/re.py", line 241, in findall 2022-01-26T06:00:41.368926+00:00 app[Drone.1]: return _compile(pattern, flags).findall(string) 2022-01-26T06:00:41.368927+00:00 app[Drone.1]: TypeError: expected string or bytes-like object

    opened by godseye439 3
  • Empty messages cannot be copied

    Empty messages cannot be copied

    The link is OK, but the log returned shows no content and cannot be copied. I've tried public/private channels, public/private groups. Some links return content, but others show no content. Empty messages cannot be empty

    opened by Riasahwas 1
  • Unable to save video files

    Unable to save video files

    Whenever i am trying to save video files i am facing the problem (attached screenshot) But after adding thumbnail video file is successfully saving Please solve the problem so that i can save video files without thumbnail

    opened by itzharshit 1
  •  [400 MESSAGE_NOT_MODIFIED] error

    [400 MESSAGE_NOT_MODIFIED] error

    Telegram says: [400 MESSAGE_NOT_MODIFIED] - The message was not modified because you tried to edit it using the same content (caused by "messages.EditMessage")

    opened by Rajveer0916 1
  • #bug #request

    #bug #request

    Sir when I use batch command it gives same files multiple times also when I updated it shows in logs [ERROR/2022-12-30 17:48:44,284] telethon.client.updates: Unhandled exception on _batch Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/telethon/client/updates.py", line 467, in _dispatch_update await callback(event) File "main/plugins/batch.py", line 71, in _batch await conv.send_message(r) File "/usr/local/lib/python3.9/site-packages/telethon/tl/custom/conversation.py", line 88, in send_message sent = await self._client.send_message( File "/usr/local/lib/python3.9/site-packages/telethon/client/messages.py", line 855, in send_message raise ValueError( ValueError: The message cannot be empty unless a file is provided

    opened by Aisaeyw-hei 1
  • ValueError: The message cannot be empty unless a file is provided

    ValueError: The message cannot be empty unless a file is provided

    [ERROR/2022-12-30 17:48:44,284] telethon.client.updates: Unhandled exception on _batch
    Traceback (most recent call last):
    File "/usr/local/lib/python3.9/site-packages/telethon/client/updates.py", line 467, in _dispatch_update
    await callback(event)
    File "main/plugins/batch.py", line 71, in _batch
    await conv.send_message(r)
    File "/usr/local/lib/python3.9/site-packages/telethon/tl/custom/conversation.py", line 88, in send_message
    sent = await self._client.send_message(
    File "/usr/local/lib/python3.9/site-packages/telethon/client/messages.py", line 855, in send_message
    raise ValueError(
    ValueError: The message cannot be empty unless a file is provided
    

    pls help

    bot pov

    image @vasusen-code

    opened by ananth-28 0
  • render.com      telethon.errors.rpcerrorlist.FloodWaitError

    render.com telethon.errors.rpcerrorlist.FloodWaitError

    Dec 17 08:41:21 PM starting Bot ~@DroneBots Dec 17 08:41:30 PM Traceback (most recent call last): Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/runpy.py", line 188, in _run_module_as_main Dec 17 08:41:30 PM mod_name, mod_spec, code = _get_module_details(mod_name, _Error) Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/runpy.py", line 147, in _get_module_details Dec 17 08:41:30 PM return _get_module_details(pkg_main_name, error) Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/runpy.py", line 111, in _get_module_details Dec 17 08:41:30 PM import(pkg_name) Dec 17 08:41:30 PM File "/app/main/init.py", line 22, in Dec 17 08:41:30 PM bot = TelegramClient('bot', API_ID, API_HASH).start(bot_token=BOT_TOKEN) Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/auth.py", line 134, in start Dec 17 08:41:30 PM else self.loop.run_until_complete(coro) Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete Dec 17 08:41:30 PM return future.result() Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/auth.py", line 183, in _start Dec 17 08:41:30 PM await self.sign_in(bot_token=bot_token) Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/auth.py", line 369, in sign_in Dec 17 08:41:30 PM result = await self(request) Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 30, in call Dec 17 08:41:30 PM return await self._call(self._sender, request, ordered=ordered) Dec 17 08:41:30 PM File "/usr/local/lib/python3.9/site-packages/telethon/client/users.py", line 84, in _call Dec 17 08:41:30 PM result = await future Dec 17 08:41:30 PM telethon.errors.rpcerrorlist.FloodWaitError: A wait of 334 seconds is required (caused by ImportBotAuthorizationRequest)

    opened by joewsr 0
Owner
Mahesh Chauhan
c + v
Mahesh Chauhan
Savecontentbot - Telegram Save Content Bot With Same more Features

Save Restricted Content Bot A simple telegram bot to save restricted content wit

Group Dc Bots 3 Jan 26, 2022
An Inline Telegram YouTube Downloader bot with custom, permanent thumbnail support and cancel upload facility. Make your fork now.

Inline-Tube-Mate (YouTube Downloader) An Inline Telegram bot that can download YouTube videos with permanent thumbnail support Bot need to be in Inlin

Renjith Mangal 41 Dec 14, 2022
A Telegram Filter Bot, Support Unlimited Filter. Also, The Bot can auto-filter telegram File | video

A Telegram Filter Bot, Support Unlimited Filter. Also, The Bot can auto-filter telegram File | video

Hash Minner 3 Nov 27, 2021
SSH-Restricted deploys an SSH compliance rule (AWS Config) with auto-remediation via AWS Lambda if SSH access is public.

SSH-Restricted SSH-Restricted deploys an SSH compliance rule with auto-remediation via AWS Lambda if SSH access is public. SSH-Auto-Restricted checks

Adrian Hornsby 30 Nov 8, 2022
Telegram Bot to save Posts or Files that can be Accessed via Special Links

OKAERI-FILE Bot Telegram untuk menyimpan Posting atau File yang dapat Diakses melalui Link Khusus. Jika Anda memerlukan tambahan module lagi dalam rep

Wahyusaputra 5 Aug 4, 2022
A simple Telegram bot that can broadcast messages and media to the bot subscribers. with mongo DB support

?????????????????? ?????? A simple Telegram bot that can broadcast messages and media to the bot subscribers using MongoDB. Features Support mongodb.c

N A C BOTS 70 Jan 2, 2023
Morpheus is a telegram bot that helps to simplify the process of making custom telegram stickers.

?? Morpheus is a telegram bot that helps to simplify the process of making custom telegram stickers. As you may know, Telegram's official Sti

Abhijith K S 1 Dec 14, 2022
null 1 Feb 18, 2022
A customizable, multilanguage Telegram shop bot with Telegram Payments support

Greed A customizable, multilanguage Telegram shop bot with Telegram Payments support! Demo Send a message to @greedtestbot on Telegram to view a demo

Stefano Pigozzi 328 Dec 29, 2022
Free and Open Source Group Voice chat music player for telegram ❤️ with button support youtube playback support

Free and Open Source Group Voice chat music player for telegram ❤️ with button support youtube playback support

Sehath Perera 1 Jan 8, 2022
A simple message content sniping Discord bot which you can run yourself! Sniping API pulled from isobot and Arch bot

Discord Snipe Bot This is a bot made with the same message content sniping API from isobot and Arch bot. It's default prefix is -, however you can als

notsniped 5 Aug 11, 2022
WILSON Cloud Respwnder is a Web Interaction Logger Sending Out Notifications with the ability to serve custom content in order to appropriately respond to client-issued requests.

WILSON Cloud Respwnder What is this? WILSON Cloud Respwnder is a Web Interaction Logger Sending Out Notifications (WILSON) with the ability to serve c

null 48 Oct 31, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
A Telegram Repo For Devs To Controll The Bots Under Maintenance.This Bot Is For Developers, If Your Bot Is Down, Use This Repo To Give Your Dear Subscribers Some Support By Providing Them Response.

Maintenance Bot A Telegram Repo For Devs To Controll The Bots Under Maintenance About This Bot This Bot Is For Developers, If Your Bot Is Down, Use Th

Vɪᴠᴇᴋ 47 Dec 29, 2022
Uploader-Bot - A Modified Telegram Url Uploader Bot With Mongodb, Zee5, Sonyliv Support and Many Other Yt-dlp Sites

???????????????? ?????????????????? ?? APP_ID API_HASH TG_BOT_TOKEN DATABASE_URL

null 11 Sep 10, 2022
A simple telegram voting bot based on the python-telegram-bot api.

A simple telegram voting bot based on the python-telegram-bot api. *To make it more easy to use, I might make a C++ code in the future so you don't ha

null 3 Sep 13, 2021
A simple Telegram bot that analyses a given word, built with python-telegram-bot

Telegram Word Bot A simple Telegram bot that analyses a given word, built with python-telegram-bot. The bot is fairly useless - unless you often need

Chris N 2 Jul 14, 2022
A simple telegram bot to recognize lengthy voice files to text and vice versa with multiple language support.

Voicebot A simple Telegram bot to convert lengthy voice clips to text and vice versa with supporting languages. Mandatory Variables API_HASH - Yo

Renjith Mangal 12 Oct 21, 2022
Telegram bot to stream videos in telegram voicechat for both groups and channels. Supports live strams, YouTube videos and telegram media.

Telegram VCVideoPlayBot An Telegram Bot By @ZauteKm To Stream Videos in Telegram Voice Chat. NOTE: Make sure you have started a VoiceChat in your Grou

Zaute 20 Oct 21, 2022