
tg-bridge
tg-bridge is a standalone working out of box plugin that creates a chat bridge between Telegram group and Minecraft chat.
mctg-bridge — Minecraft <-> Telegram Chat Bridge
!GitHub Tag
!GitHub Build
MCTG-bridge is a Minecraft Telegram bridge plugin for Spigot and Paper servers. It synchronizes Minecraft chat with a Telegram group in both directions and includes server management commands, account linking, and optional plugin integrations.
Preview
!image
!image
Features
Compared with simple relay-only plugins, MCTG-bridge provides:
- Two-way Telegram group <-> Minecraft chat communication.
- Built-in Telegram commands for server status, players, uptime, memory, statistics, and top statistics.
- Optional account linking from Minecraft to Telegram.
- Optional hooks for LoginSecurity and InviteSystem; they activate only when those plugins are installed.
- Per-player chat visibility and message compaction.
- Telegram image rendering with optional dithering.
- Optional ngrok support for a tunnel started from Telegram.
- Configuration stored in the plugin folder; no separate bridge service is required.
Requirements
- Spigot, Paper, or a compatible fork running Minecraft 1.17–1.21.
- Java 17+ for building the plugin.
- A Telegram bot and a Telegram group.
Quick start
- Download the latest JAR.
- Put it into
plugins/. - Start the server once to generate the config.
- Create a Telegram bot with @BotFather and disable privacy mode.
- Add
api_tokentoplugins/tg-bridge/config.yml. - Run
/attach <code>in your Telegram group. - Restart the server.
Full detailed setup
1. Telegram setup
- Open @BotFather in Telegram.
- Run
/newbotand follow the prompts. - Copy the bot API token. Keep it private.
- Run
/setprivacy, select the bot, and set privacy toDisabledso it can receive group messages. - Add the bot to the target Telegram group. Give it the permissions needed to read and send messages.
2. Minecraft server setup
- Download the latest stable JAR from Releases.
- Copy it to the server's
plugins/directory. - Start the server once. The plugin creates
plugins/tg-bridge/config.yml. - Put the token into
api_token:
api_token: "123456:replace-with-your-token"
- Restart the server. The console prints a temporary code, for example:
[tg-bridge] chat_id is null, use /attach <secretTempCode> to pin one
[tg-bridge] secretTempCode is set to -72683
- In the target Telegram group, send
/attach -72683using the code printed by your server. - Restart the server again. The bridge is ready.
Never publish api_token or the temporary attach code.
Usage examples
Telegram group commands
/list Online Minecraft players
/ping Check that the bot responds
/uptime Show server uptime
/memory Show allocated memory
/stats Show player statistics
/top Show top statistics
/kickme Kick your linked Minecraft account
Preview
!image
!image
Available when the matching plugin is installed:
/invite Invite a person to the server (InviteSystem)
/removepass Remove your password (LoginSecurity)
/changepass Change your password (LoginSecurity)
Minecraft commands
/tg chat show
/tg chat hide
/tg account register
/tg chat hide hides bridged Telegram messages for the executing player. /tg account register starts the Telegram account-linking flow.
Settings
Edit plugins/tg-bridge/config.yml, then restart the server.
| Setting | Purpose |
|---|---|
api_token | Telegram bot token. Required. |
chat_id | Linked Telegram group. Set automatically by /attach. |
enable_chat | Enable or disable Telegram-to-Minecraft chat. |
enable_dithering | Enable image dithering for Telegram photos. |
language | Default registration-message language. |
max_mc_accounts_per_tg | Maximum Minecraft accounts linked to one Telegram account. |
log_status | Control status logging. |
ngrok_auth | ngrok auth token for /tunnel. |
To use the optional tunnel, place the ngrok auth token in ngrok_auth, then send /tunnel in Telegram. Get the token from ngrok.
Build from source
mvn clean install
The built plugin JAR is produced in target/.
Links
- Stable releases
- Experimental builds
Сервер для плагина tg-bridge - как у профи
Плагин tg-bridge создан для серверов: на своём сервере вы настраиваете его под себя и решаете, кому играть. Создать сервер с плагином tg-bridge для друзей можно за пару минут - BungeeHost всё уже подготовил.
