Skip to content

Posts a picture to a channel every X minutes from a queue generated from tags in Hydrus Network.

License

Notifications You must be signed in to change notification settings

fox-io/hydrus_telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hydrus Telegram Bot

About

Posts images to a Telegram channel from Hydrus Network client based on a target tag. This is a personal project that started as a forked repository. Not much left of the original. It has come a long way!

I am personally running this bot from a Windows 11 system (For better Hydrus support/performance). Changing the platform may require modifying things.

Currently supports image formats such as jpg and png. webp is partially supported. Video support is currently limited to webm (you need ffmpeg binaries installed) and mp4. Some other media formats may be supported as well. YMMV.

Usage

  1. Clone the repository
git clone https://github.com/fox-io/hydrus_telegram_bot.git
  1. Copy config/config.json.example to config/config.json and enter your information into this file. In it, you will need:
    • Telegram Admin ID
    • Telegram Bot API Access Token
    • Telegram Channel ID
    • Hydrus API Key
    • Hydrus tag for images to post
    • Hydrus tag for images that have been posted
    • Delay (in minutes) between Telegram posts
    • Timezone offset
  2. Enable the Client API in Hydrus.
  3. Tag images you want to post to Telegram in Hydrus with the queue_tag value in config/config.json.
  4. Image metadata from Hydrus will be displayed:
    • Title
    • Creator
    • Character(s)
    • Source URL(s)
  5. After being posted via the bot, the images will be tagged with the posted_tag value from config/config.json in Hydrus (the queue_tag will also be removed).

Notes

This bot uses external libraries for some functionality.

  • ImageMagick - Make sure that your paths are set properly if you get import errors regarding Wand.
  • ffmpeg

About

Posts a picture to a channel every X minutes from a queue generated from tags in Hydrus Network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages