[wordpress插件] Broadcast to Telegram广播到电报

wordpress 插件 文章 2020-03-11 18:00 845 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

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

广播到电报是一个非常简单的插件,可让您通过管理员BOT自动将发帖通知发送到电报频道。
它允许您注册多个电报频道,您可以选择

, 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)


还可以在文档更新时知道哪些频道已经发送了通知,并直接编辑Telegram原始消息,并将其标记为由(M)更新。

symbol.

符号。

安装步骤

    1. Download the plugin and install it in wordpress
    2. 下载插件并将其安装在wordpress中

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Go to Settings > Broadcast to Telegram page enter your channel admin bot token and channels list in the syntax shown on the side.
    6. 转到“设置”>“广播到电报”页面,以侧面显示的语法输入您的频道管理机器人令牌和频道列表。

    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.

    只需与BotFather交谈(如下所述),然后执行一些简单的步骤即可。

      1. in your Telegram client window search for @BotFather
      2. 在电报客户端窗口中搜索 @BotFather

      3. next you type the following commands:
      4. 接下来,您键入以下命令:

      You:

      ewbot

      / newbot

      BotFather:

      BotFather:

      Alright, a new bot.

      好的,一个新的机器人。

      How are we going to call it?

      我们怎么称呼它?

      Please choose a name for your bot.

      请为您的漫游器选择一个名称。

      You:

      您:

      myTestBot

      myTestBot

      BotFather:

      BotFather:

      Good.

      好。

      Now let's choose a username for your bot.

      现在,让我们为您的机器人选择一个用户名。

      It must end in 'bot'.

      它必须以“ bot”结尾。

      Like this, for example: TetrisBot or tetris_bot.

      像这样:例如TetrisBot或tetris_bot。

      You:

      您:

      myUserBot

      myUserBot

      BotFather:

      BotFather:

      Done!

      完成!

      Congratulations on your new bot.

      祝贺您的新机器人。

      You will find it at t.me/mytestbot.

      您可以在 t.me/mytestbot 上找到它。

      You can now add a description, about section and profile picture

      您现在可以添加有关部分和个人资料图片的描述

      for your bot, see /help for a list of commands.

      对于您的机器人,请参阅/ help以获取命令列表。

      By the way, when you've finished creating your cool bot,

      顺便说一句,当您完成酷机器人的创建后,

      ping our Bot Support if you want a better username for it.

      如果您想要一个更好的用户名,请ping我们的机器人支持。

      Just make sure the bot is fully operational before you do this.

      在执行此操作之前,只需确保机器人已完全运行即可。

      Use this token to access the HTTP API:

      使用此令牌访问HTTP API:

      277260464:AAGPNnx_87k1ctokVMffprgzvPgVvrXRAqQ

      277260464:AAGPNnx_87k1ctokVMffprgzvPgVvrXRAqQ

      For a description of the Bot API, see this page:

      有关Bot API的说明,请参见以下页面:

      https://core.telegram.org/bots/api

      https://core.telegram.org/bots/api

      Parameters of your just created BOT are:

      刚创建的BOT的参数为:

        • name: myTestBot
        • 名称: myTestBot

        • username: @myUserBot
        • 用户名: @myUserBot

        • token: 277260464:AAGPNnx_87k1ctokVMffprgzvPgVvrXRAqQ
        • 令牌: 277260464:AAGPNnx_87k1ctokVMffprgzvPgVvrXRAqQ

        • URL: https://t.me/mytestbot
        • 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,

        @ channel_name1,@ channel_name2,

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

        然后在智能手机上以管理员的身份将BOT用户名( @myUserBot )添加到每个频道。

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

        最后在插件设置页面中插入 BOT令牌频道列表,并插入“Voilà,les jeux sont faits !!”

        That’s all folks!

        这就是所有人!

下载地址
https://downloads.wordpress.org/plugin/broadcast-to-telegram.zip
-EOF-

AI助手支持GPT4.0