该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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!

评价

此插件暂无评价。

贡献者及开发者

“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