Linux 软件免费装

ThreadTandem — Post Publishing and Comment Sync for Telegram

开发者 ichi-nya
更新时间 2026年11月6日 18:30
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1.4
版权: GPLv2 or later
版权网址: 版权信息

标签

comments telegram discussion crossposting

下载

1.3.1 1.3.2 1.1.0 1.2.0 1.1.1 1.3.0

详情介绍:

ThreadTandem connects one WordPress site to one Telegram bot, one channel and its linked discussion group. Each published post keeps a persistent link to its Telegram announcement and discussion. ThreadTandem is independently developed and is not affiliated with or endorsed by Telegram. You can support ThreadTandem development through DaLink or DonationAlerts. Features: Incoming synchronization supports text posts and comments. Media captions can be imported as text, without downloading attachments. Downloading incoming attachments, Telegram Login, forum topics, automatic historical import and moderation commands in Telegram are not included. Long announcements and website comments are shortened to fit Telegram; their complete original text remains on the website. Link previews are the default. Photo mode falls back to a link preview when no image is available. Local JPEG/PNG posters are uploaded directly, up to 10 MB. Existing text announcements can be updated with a photo without changing their message ID. An existing photo is kept when switching to link previews or removing the poster, preserving its discussion. Format changes do not resend the archive; use Send on the synchronization page to queue an existing announcement. Link previews depend on Telegram and require a publicly accessible article URL. External service: Telegram ThreadTandem uses the Telegram Bot API, normally at https://api.telegram.org. You need a Telegram account, a bot token and permission to administer the channel and discussion group. You may configure another HTTPS Bot API endpoint; that endpoint then receives the same requests. ThreadTandem contacts Telegram when you check the connection, manage incoming delivery, poll for updates, or process enabled synchronization jobs. It sends the bot token, chat and message identifiers, published post titles, excerpts and links. When comment synchronization is enabled, approved website comment text and the comment author display name are also sent. Comment email addresses and IP addresses are not sent. Telegram delivers channel publications and discussion messages to your webhook, or ThreadTandem retrieves them using getUpdates in cron polling mode. When channel import is enabled, new text publications and media captions are stored as drafts with their channel/message identifiers and dates. Eligible text replies are stored in WordPress with their display names, numeric sender identities, chat/message identifiers and reply relationships. Inform participants before enabling import, including participants of private groups. The comment form informs website visitors that approved comments and their names will also appear in Telegram. Telegram service terms: https://telegram.org/tos Telegram privacy policy: https://telegram.org/privacy Bot API documentation: https://core.telegram.org/bots/api ThreadTandem is an independent integration and is not affiliated with Telegram or WordPress.org. It does not include analytics or advertising.

安装:

  1. Upload the threadtandem-sync-for-telegram directory to wp-content/plugins/ or install the ZIP from Plugins > Add New > Upload Plugin.
  2. Activate ThreadTandem on the individual site. Network-wide activation is not supported.
  3. Open Settings > ThreadTandem. Save a dedicated bot token and a channel ID, @username or public link such as https://t.me/username.
  4. Add the bot as a channel administrator with permission to publish. For comments, link a discussion group to the channel and make the bot an administrator of that group too.
  5. Enable the features you want, save, and click Check connection. Publishing and comment synchronization are off by default.
  6. Select an update delivery mode and save. Webhook mode requires public incoming HTTPS. Cron polling removes this site's webhook and retrieves updates once a minute, without discarding pending events. ThreadTandem refuses to replace a different integration webhook. Use a dedicated bot with only one receiver.
  7. Publish a test post. Check Queue and diagnostics, or use Process queue now.
  8. Reply under the announcement in Telegram, review the imported comment in WordPress, then reply from the site to verify the conversation.
An optional THREADTANDEM_BOT_TOKEN constant in wp-config.php takes precedence over the database token. The saved token is never rendered back into the settings form. Protect database backups as you would other site credentials. WordPress 6.2 or later is required for safely prepared database table identifiers. The comment, comment metadata and ThreadTandem mapping tables must use InnoDB for transactional imports.

屏幕截图:

  • Control Telegram publishing for each post from the WordPress block editor sidebar.
  • Native WordPress comments preserve nested replies. The Telegram author's name and paper-plane icon link to the original message.

常见问题:

Does viewing a post call Telegram?

No. Visitors read native WordPress comments. Network work runs in the background queue or through explicit administrator actions.

Why is delivery delayed?

WP-Cron depends on site visits. ThreadTandem schedules a batch about once a minute and handles up to three jobs per batch. Configure a server cron for wp-cron.php when predictable delivery matters. Rate limits and unresolved parent mappings delay individual jobs.

What if the send result is unknown?

A timeout may occur after Telegram accepted a message. ThreadTandem marks this as Result unknown and does not automatically repeat it. Check Telegram before using the administrator retry control. A manual retry can create a duplicate; automatic reconciliation is not provided.

Can I use a local WordPress installation?

Yes. Choose Cron polling, every minute in Telegram events, save and check the connection. Polling needs outgoing HTTPS access to the configured Bot API and a running WP-Cron, but no public incoming address. Webhook mode requires a public HTTPS route to the REST endpoint. The external webhook URL option does not create a tunnel. A proxy must preserve the request body and X-Telegram-Bot-Api-Secret-Token header.

How does cron polling work?

The existing minute worker requests up to 100 updates with getUpdates before processing the queue. Each accepted event is durably queued before its ID is confirmed in a later request. Duplicate receipts do not create duplicate jobs. The cursor is scoped to the bot and API server. A transport switch keeps existing publication and comment mappings. Disconnect pauses polling; Start polling resumes it. Receive updates now runs one batch without restoring a webhook. The settings show the last successful poll and any receiving error. Configure a system cron to run wp-cron.php every minute for predictable delivery; otherwise WP-Cron depends on site visits. Telegram stores updates for no more than 24 hours. Another polling application or webhook using the same bot causes conflicts. Switching back to Webhook registers this site's webhook and stops automatic polling.

Can I use a custom Bot API server?

Yes, through the advanced HTTPS API URL setting. All requests use it. WordPress safe HTTP rules may reject private IP addresses and nonstandard ports. HTTP endpoints and URLs containing credentials or query parameters are rejected.

Which comments are imported?

Only text messages in the configured discussion group that belong to an exactly mapped post thread or reply chain. Unmatched parents wait rather than being assigned to another post. Bot messages, commands, media and unrelated chat messages are not imported. A site requiring registered commenters cannot import Telegram-only authors.

Are moderation and deletion mirrored everywhere?

Website comments are sent only after approval. Unapproving, spamming, trashing or deleting a website-origin comment attempts to remove its bot-authored Telegram copy. Telegram may reject removal because of permissions or message age; the queue reports that failure. Moderation or deletion of an imported Telegram comment affects its WordPress copy. It does not delete the participant's original Telegram message. Telegram does not deliver ordinary group message deletions to Bot API clients, so those deletions cannot automatically remove the WordPress copy.

Can I change the bot or channel?

New settings need a new connection check. Existing post mappings are not silently moved to another bot or channel. An old queued job may need to be saved again after a connection change. Historical remapping is outside this release.

What data is retained?

Successful incoming jobs have their message payload cleared. Completed and failed incoming job records are removed after seven days. Comment content is native site content; message mappings remain until integration data is removed. The Privacy Policy Guide includes suggested ThreadTandem text. Additional sender metadata participates in email-based WordPress privacy tools when a matching comment email exists. Telegram-only authors have no email supplied by Telegram and must contact the site administrator to verify their identity for access or removal requests.

What happens when I deactivate or uninstall ThreadTandem?

Deactivation stops the scheduled worker and preserves data. Disconnect the webhook before removing the plugin. By default, uninstall keeps integration data. Clear Keep integration data when deleting the plugin to remove ThreadTandem options, tables and integration metadata during uninstall. Core posts and comments remain. Telegram copies and other externally stored data are not removed automatically.

更新日志:

1.3.2 1.3.1 1.3.0 1.2.0 1.1.1 1.1.0 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0