| 开发者 | rainafarai |
|---|---|
| 更新时间 | 2026年2月27日 21:01 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.When you create a Telegram bot, BotFather generates a unique token for you. BotFather (@botfather) is the official Telegram bot for creating and managing bots — search for it directly inside Telegram. Creating a new bot
There are two quick ways:
Yes. Add @RawDataBot (https://t.me/RawDataBot) to your group or channel (as admin), or simply message it privately. Send any message and it will reply with a full JSON breakdown of the chat, including the exact Chat ID you need.
This usually means no messages have been sent to the bot recently. Try the following:
Yes you can add more than one chattid separated by a comma (,) both in option page and in the shortcode.
Yes! Starting from version 3.5, this plugin supports the WordPress Abilities API and is compatible with MCP (Model Context Protocol), the open standard that allows AI agents like Claude, ChatGPT, and others to interact with WordPress autonomously.
You need to install two additional free plugins:
Via WordPress Application Passwords — go to Users → Your Profile → Application Passwords, create one, and use it in your MCP client configuration. Your main password is never exposed.
An authorized AI agent can:
You can test everything for free using curl from your terminal. First, make sure the plugin is configured and the built-in "Send Test Message" button works correctly in the plugin settings. Then run these commands in order: Step 1 — Initialize the session and get the Session ID: curl -X POST "https://YOURSITE.com/wp-json/nftb-telegram/mcp" \ -H "Content-Type: application/json" \ -u "ADMIN:APP_PASSWORD" \ -D - \ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' Look for the Mcp-Session-Id value in the response headers and copy it. Step 2 — Verify the tool is available: curl -X POST "https://YOURSITE.com/wp-json/nftb-telegram/mcp" \ -H "Content-Type: application/json" \ -H "Mcp-Session-Id: YOUR-SESSION-ID" \ -u "ADMIN:APP_PASSWORD" \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' You should see "notification-for-telegram-send-message" in the response. Step 3 — Send a real Telegram message via MCP: curl -X POST "https://YOURSITE.com/wp-json/nftb-telegram/mcp" \ -H "Content-Type: application/json" \ -H "Mcp-Session-Id: YOUR-SESSION-ID" \ -u "ADMIN:APP_PASSWORD" \ -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"notification-for-telegram-send-message","arguments":{"message":"🤖 MCP is working!"}}}' If the message arrives in your Telegram chat — everything is working correctly. APP_PASSWORD = a WordPress Application Password (Users → Your Profile → Application Passwords).
This feature is currently experimental. We welcome feedback and bug reports — if you test it, please leave a review or open an issue on the plugin's GitHub page.
Once the required plugins are installed, your MCP endpoint will be available at: https://yoursite.com/wp-json/nftb-telegram/mcp
.telegram-notify-page prefix for all styles to prevent conflicts with other plugins and themes (e.g., Elementor).