Telegram notifications for various PHP-based CMS.
It is possible to send notifications about updates on your website (new posts, comments) via Telegram. It's a rather easy task, as everything is done via simple HTTP requests. So you only need to "hook-up" the "publish" event of your CMS.
For this you'll need a Telegram bot and a Telegram chat ID, which can be a channel, a group or a user account (yours, most likely).
Here I created such plugins for:
You need to hook you functions to publish_post or comment_post.
Here's a more detailed article (in russian).
You need to hook your function to PageSaveComplete.
Here's a more detailed article (in russian).
First you need to install the module Hook Post Action. And then implement any hook you want (hook_entity_postsave
, for example) in submodule.
Here's a more detailed article.