mohitjoshi155 / Tg-UsenetBot

Telegram Bot for Interacting with SABnzbd and NZBhydra API to manage and use them via Telegram.

Home Page:https://theopensourcerer.t.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram UsenetBot


Telegram UsenetBot is a bot that provides an easy and convenient way to track the progress of your Usenet downloads using Sabnzbd API and can also search in Indexers using Nzbhydra APIs. With Telegram UsenetBot, you can receive your downloads' progress and post processing updates directly on your Telegram chat.



Note Bot is in BETA currently. Better and detailed readme will be added later. Join Testing Group to test and help into identify more Bugs. ( Group is not open for everyone, please only join if you have prior knowledge of using Usenet.)



More about Usenet : IITK ArticleBasic GuideUsenet Reddit wiki

Note: This bot doesn't download any NZB files or content. It simply interacts with various APIs such as Sabnzbd and NZBGet to display progress and allow user to control them via Telegram.


Bot Commands and Usage

  • /status - To see downloading status with live updates.
  • /pstatus - To see post processing status with live updates.
  • /stats - Get detail stats of Bot server.
  • /pause - Pause the given Taskid task.
  • /resume - Resume the given Taskid task.
  • /cancel - Delete the given Taskid task.
  • /nzbmirror - Reply to a .nzb file to add it in sabnzbd.
  • /nzbgrab or /nzbadd - Add multiple IDs which we get from search.
  • /resumeall /pauseall /cancelall (sudo commands)

searching stuff -

  • /search- Search your query.
  • /movie - Movie name / IMDB ID / IMDB link.
  • /series - Series Name / IMDB ID / IMDB link.
  • /indexers - List all your indexers. (sudo command)

( Few more commands /start /help /ping /update /logs )


Deployment

SABNzbd post-processing script that automatically uploads completed download files to Google Drive and sends Telegram notifications once the file has been successfully uploaded with the drive link : https://github.com/sanjit-sinha/Tg-UsenetBot/blob/main/TelegramBot/usenetbot/postproc.py

Sabnzbd installationNZBHydra Installation

Docker Installation of Usenet Bot

git clone https://github.com/sanjit-sinha/Tg-UsenetBot
cd Tg-UsenetBot

Now edit and fill all the config vars by typing nano config.env and save it by pressing ctrl+o and to exit press ctrl+x.

Running Bot in docker container

sudo docker build . -t usenetbot 
sudo docker run usenetbot 


Credits and Contibution


Based on : https://github.com/sanjit-sinha/TelegramBot-Boilerplate

Abhishek and Mohitjoshi for helping out with usenet stuff.

Any kind of feedback, bug reports, or contributions is greatly appreciated! :)


Copyright and License



About

Telegram Bot for Interacting with SABnzbd and NZBhydra API to manage and use them via Telegram.

https://theopensourcerer.t.me

License:MIT License


Languages

Language:Python 98.9%Language:Shell 0.6%Language:Dockerfile 0.4%