這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Broadcast to Telegram

描述

Broadcast to Telegram is a very simple plugin that lets you automatically send post notification to your telegram channel via an admin BOT.
It allows you to enroll multiple Telegram channels and you can choose, when sending, which channels make the notification to. It also allows you to choose which type of document is to be used with.
It also gives the possibility, when a document is updated, to know which channels have already been sent a notification and edit directly the Telegram original message, marking it as updated by the (M) symbol.

螢幕截圖

  • Settings page
  • Send metabox before and after sending (on the channel name side the number of members/followers is shown)

安裝

  1. Download the plugin and install it in wordpress
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings > Broadcast to Telegram page enter your channel admin bot token and channels list in the syntax shown on the side.

How do I create a bot and link it to my channels?

There’s a bot… to create a new bot.
Just talk to BotFather (as described below) and follow a few simple steps.

  1. in your Telegram client window search for @BotFather
  2. next you type the following commands:
You:
/newbot

BotFather:
Alright, a new bot. How are we going to call it?
Please choose a name for your bot.

You:
myTestBot

BotFather:
Good. Now let's choose a username for your bot.
It must end in 'bot'. Like this, for example: TetrisBot or tetris_bot.

You:
myUserBot

BotFather:
Done! Congratulations on your new bot. 
You will find it at t.me/mytestbot. 
You can now add a description, about section and profile picture 
for your bot, see /help for a list of commands. 
By the way, when you've finished creating your cool bot, 
ping our Bot Support if you want a better username for it. 
Just make sure the bot is fully operational before you do this.

Use this token to access the HTTP API:
277260464:AAGPNnx_87k1ctokVMffprgzvPgVvrXRAqQ

For a description of the Bot API, see this page: 
https://core.telegram.org/bots/api

Parameters of your just created BOT are:

  • name: myTestBot
  • username: @myUserBot
  • token: 277260464:AAGPNnx_87k1ctokVMffprgzvPgVvrXRAqQ
  • URL: https://t.me/mytestbot

Warning! The data shown are just an example… They are therefore not working!

Now, if not already exist, let’s create on the smartphone channels (or chats) which we want to send notifications to:
e.g. @channel_name1, @channel_name2,

Then on the smartphone add to every channel the BOT username (@myUserBot) as administrator.

Finally insert BOT token and channels list in the plugin settings page and “Voilà, les jeux sont faits!!”

That’s all folks!

評價

There are no reviews for this plugin.

貢獻者及開發者

“Broadcast to Telegram” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Broadcast to Telegram 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

Versione 1.2.0

  • Fixed error in localization

Versione 1.1.0

  • Fixed error on HTML entities

Versione 1.0.0

  • Initial Release on wordpress.org