Your WordPress Site and Telegram Are a Perfect Pair; Here’s How to Link Them

Publishers always try to find new ways to interact with their audience and reach a wider range of readers. One of the best ways to achieve that is by connecting the most popular publication platform with the latest rising star of the instant messaging system. That is why WordPress and Telegram are a perfect pair. Integrating your WordPress site with Telegram will give it the ability to make an instant connection with your audience.

The Plugin

To connect the two, we need a little help from a plugin called Telegram for WP. Install the plugin within your WordPress dashboard and activate it.

Wordpress n Telegram -mte- Install

Then you can start customizing the plugin using its Settings menu accessible from the sidebar.

Wordpress n Telegram -mte- Settings

You will notice that there are two options available: Notifications and Post to Channel. The content of Notifications and Post to Channel is any information that is usually sent from WordPress via email. You should make sure that your hosting service and WordPress settings allow you to send emails.

Wordpress n Telegram -mte- Two Tabs

Setting Up Notifications

Notifications can be sent to an individual Telegram user or group. A Telegram group is a small, moderated chat group with limited members (200 for a normal group and 5000 for a supergroup). If you only need alerts from your personal blog, set the notifications for yourself. If you have a small team managing the WordPress blog and want to update everybody on the team, set notifications for the group.

Send notifications to single user

Open the Telegram app (either on your mobile or your computer), and start a new chat with @Notifcaster_Bot.

Wordpress n Telegram -mte- looking for bot

Send the /token command, and the bot will give you an API token for the user. (You might need to register first by using /start command.

Wordpress n Telegram -mte- get token

Copy and paste the token in the field below the instructions and save.

Wordpress n Telegram -mte- save token

Send notifications to group

Choose to add a new member to your group.

Wordpress n Telegram -mte- add member

Find the “Notifcaster_Bot” and add it.

Wordpress n Telegram -mte- add bot to group

The bot will give you an API token for the group (token must be started with g: ).

Wordpress n Telegram -mte- token group

Copy and paste the token into the field.

Since there is only one token field under Notifications, you have to choose between sending the notifications to a single user or a group.

Setting Up a Channel

While a group is intended to communicate within a small circle of family, friends, or colleagues, a Channel is a tool for broadcasting public messages to large audiences. One Channel can have unlimited members, and messages are signed with a channel’s name and not individual identity. Posting to a Channel requires a different setup. First you need to create a Channel from the new chat icon.

Wordpress n Telegram -mte- create channel-1

After setting up the channel and adding the first members, you need to create a Telegram bot. Start a new secret chat with BotFather, and request that it create a bot for you by typing /newbot command.

Wordpress n Telegram -mte- botfather 2

Botfather will create a bot and give you an API key. After setting up your bot, add it as the channel admin by clicking on the channel name and choosing channel admin.

Wordpress n Telegram -mte- add admin

Then go to your WordPress dashboard and open the Telegram for WordPress Settings menu and choose the “Post to Channel” option. Fill in all the necessary information that you got from BotFather and the Telegram channel.

Wordpress n Telegram -mte- Post to Channel options

Click “Save” to finish up.

Tips to Troubleshoot

During my experiment I failed to send the notification test from my WordPress blog. After a little digging in the TWP (Telegram for WordPress) support forum, I found this little trick to check where the problem lies.

After inputting all the API correctly in your WordPress dashboard, visit this link using your browser: “https://tg-notifcaster.rhcloud.com/api/v1/selfMessage?api_token=(your_token)&msg=ThisIsTest.”

Don’t forget to replace “(your_token)” with your token code.

If you get a test message in your Telegram, then the problem is in your hosting. Most of the time it’s about the outdated PHP version. You can contact your web hosting support for further help.

If you don’t get a test message, then you might have made some mistakes in the setup process, or you might have missed one or two characters in the token code. Retrace your steps, and make the necessary corrections.

If you still can’t make it work, then maybe it’s time to ask the plugin developer for help.

Conclusion

To wrap things up, Telegram is another great way to connect with your blog audience. It’s fast, secure, and more personal than the email or RSS because your reader will likely receive the messages on their mobile.

Have you tried using Telegram to connect to your readers, or do you plan to use it in the future? Share your thoughts and opinions using the comments below.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Jeffry Thurana Avatar

Read next

Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
A Japanese man named Jiroemon Kimura, who lived to 116, was born in 1897 when Queen Victoria still ruled and died in 2013, meaning a single human life personally overlapped with the invention of the airplane, the atomic bomb, the internet, and Instagram
The Hollywood sign originally read HOLLYWOODLAND when it was built in 1923 as a real estate advertisement for a housing development, and it was only meant to stand for 18 months, but nobody ever got around to taking it down and the city eventually adopted it as a landmark
Almost all of the world’s internet traffic does not travel by satellite but through fibre-optic cables lying on the ocean floor, a hidden web of wires crossing the deepest parts of the sea to connect the continents.
People who flip their phone face down on every table aren’t being secretive. They figured out that staying interruptible meant handing their time to whoever rang first
Twitch vs. Facebook Gaming vs. YouTube Gaming: What’s the Best Live Game Streaming Platform?
Chrome Extensions Ownership Transfer is a Direct Threat to You: How to Stay Safe