PHP Classes

How to Use a WordPress Telegram Chat Plugin to Send Messages to a Telegram Channel When a Post is Published Using the Package Post to Telegram Wordpress Plugin: Post a link of a WordPress article in Telegram

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-09-13 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
post-to-telegram-wor 1.0GNU General Publi...5PHP 5, Web services, Chat, Blogs
Description 

Author

This package can post a link of a WordPress article in Telegram.

It provides a WordPress plugin that can send a message to a Telegram channel when a post is published in a WordPress site.

The plugin can add a checkbox to let the publisher tell if the post link should be sent to the Telegram channel when the post is saved using the Telegram API.

It also adds a text box to let the publisher specify a text message to be sent with the post link to the Telegram channel.

A WordPress administration page it provided to let a WordPress administrator to specify the Telegram API access token and the Telegram channel to post the messages.

Innovation Award
PHP Programming Innovation award nominee
September 2025
Number 6
Telegram is a chat application that allows multiple people to communicate using chat messages.

WordPress is a popular PHP content management system that allows editors to publish content pages on a website. It can be extended with plugins that add more functionality to a WordPress site.

This package provides a WordPress plugin that can send messages to a Telegram channel when a new WordPress post is published. This way, people who access the Telegram channel can be notified about WordPress site new posts and visit the post pages to view the post content.

Manuel Lemos
Picture of Ákos Nikházy
  Performance   Level  
Name: Ákos Nikházy <contact>
Classes: 17 packages by
Country: Hungary Hungary
Innovation award
Innovation award
Nominee: 7x

Instructions

Documentation

post-to-telegram-wordpress-plugin

This ads a metabox to the post editor that lets you post your post's link to a chat or channel. You just need the chat id and a Telegram bot as admin in the target and its token.

How to use?

Copy the PHP file in the wp-content/plugins folder or zip it and upload it in the admin page's plugin uploader.

After install you have to do these steps to aquire the needed data to this to work:

  1. If you do not have one create a Channel on Telegram.
  2. Get the channel ID by forwarding a post from the channel to the IDBot (@username_to_id_bot). Write down your Channel ID.
  3. Create a new bot with the Bot Father (@BotFather). Follow its instructions. You will recieve the bot token. Write it down. Remember, this is a token that gives anyone knowing it full control over your bot. This plugin saves the token in an encrypted form. Never share it with anyone.
  4. Add your bot as an administrator to the channel. It only needs message rights to work.
  5. Enter the chat id and bot token in the fields above.
  6. When you writing a new post or updateing an existing one, check the checkbox and optionally wirte a text in the metabox. The message with a link to the post will be sent to the channel when you save the post.

  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file post-to-telegram-channel.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file readme.txt Data WordPress plugin metadata

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0