YOURLS Telegram Notifier Listed in Awesome YOURLS!

This plugin allows you to to send a Telegram message whenever a new shortlink is created. You can customize the message and send the same message to multiple Telegram accounts or channels.

Requires YOURLS 1.9.1 and above (lower is untested).

Usage

Admin Page 📷 Example Telegram Notifications 📷
enter image description here enter image description here
  • Get notified whenever a new link is added to your yourls database
  • Easy setup with the plugin configuration page
  • Custom notification messages with placeholders for the shortened URL, the keywoard and IP that submitted the request
  • Notify multiple users and/or channels at the same time (this should work without issues for up to 30 receivers). Just enter all IDs/channel names separated by comma.

Installation

  1. In /user/plugins, create a new folder named telegram-notifier.
  2. Get the latest release from Github and extract the files contained in that directory.
  3. Go to the Plugins administration page (eg. http://sho.rt/admin/plugins.php) and activate the plugin.
  4. Message @botfather on Telegram and create a new bot following the instructions. Insert the obtained bot token in plugin settings page.
  5. Your bot can message to individual users and channels (if it has the rights). To send a notification to yourself, obtain your Telegram user ID by messaging @myidbot and paste it in the "Telegram User ID(s)" field.

IMPORTANT: You need to message your bot first (message content does not matter) until it is able to send you messages. This is a security measure implemented by Telegram to prevent spam.

  1. To send a message to a broadcast channel just use @channel_name (don't forget the "@") instead of a the numeric user ID.
  2. Save settings and send a test message via the interface.
  3. Have fun!

License

This package is licensed under the MIT License.