YOURLS Telegram Notifier [](https://github.com/YOURLS/awesome-yourls/)
January 10, 2023 ยท View on GitHub
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 :camera: | Example Telegram Notifications :camera: |
|---|---|
![]() | ![]() |
- 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
- In
/user/plugins, create a new folder namedtelegram-notifier. - Get the latest release from Github and extract the files contained in that directory.
- Go to the Plugins administration page (eg.
http://sho.rt/admin/plugins.php) and activate the plugin. - Message
@botfatheron Telegram and create a new bot following the instructions. Insert the obtained bot token in plugin settings page. - 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
@myidbotand 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.
- To send a message to a broadcast channel just use
@channel_name(don't forget the "@") instead of a the numeric user ID. - Save settings and send a test message via the interface.
- Have fun!
License
This package is licensed under the MIT License.

