Skip to content

sanjit-sinha/Tg-UsenetBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 NZBHydra to display progress and allow user to control them via Telegram.


Bot Commands and Usage

/status - To see progress status with live update.
/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 -

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

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

Screenshots


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 (Edit according to your need. Give chmod +x authorization to script before using.)

Sabnzbd installation ( Install it as a service to use rclone ) • NZBHydra Installation

Sabnzbd Settings -

settings -> switches -> post-processing -> Untick Post-Process Only Verified Jobs
settings -> switches -> post-processing -> Tick Deobfuscate final filenames
settings -> sorting -> Enable sortings [ Movie: %title (%y)/%fn.%ext series: %sn (%y)/Season %s/%fn.%ext ]

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