Skip to content

retifrav/telegram-for-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram for CMS

Telegram notifications for various PHP-based CMS.

About

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:

CMS

Wordpress

You need to hook you functions to publish_post or comment_post.

Here's a more detailed article (in russian).

MediaWiki

You need to hook your function to PageSaveComplete.

Here's a more detailed article (in russian).

Drupal

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.