▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Плагины/tg-bridge
tg-bridge

tg-bridge

tg-bridge is a standalone working out of box plugin that creates a chat bridge between Telegram group and Minecraft chat.

Оцените первым
281
2

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

  1. Download the latest JAR.
  2. Put it into plugins/.
  3. Start the server once to generate the config.
  4. Create a Telegram bot with @BotFather and disable privacy mode.
  5. Add api_token to plugins/tg-bridge/config.yml.
  6. Run /attach <code> in your Telegram group.
  7. Restart the server.

Full detailed setup

1. Telegram setup

  1. Open @BotFather in Telegram.
  2. Run /newbot and follow the prompts.
  3. Copy the bot API token. Keep it private.
  4. Run /setprivacy, select the bot, and set privacy to Disabled so it can receive group messages.
  5. Add the bot to the target Telegram group. Give it the permissions needed to read and send messages.

2. Minecraft server setup

  1. Download the latest stable JAR from Releases.
  2. Copy it to the server's plugins/ directory.
  3. Start the server once. The plugin creates plugins/tg-bridge/config.yml.
  4. Put the token into api_token:
api_token: "123456:replace-with-your-token"
  1. 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
  1. In the target Telegram group, send /attach -72683 using the code printed by your server.
  2. 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.

SettingPurpose
api_tokenTelegram bot token. Required.
chat_idLinked Telegram group. Set automatically by /attach.
enable_chatEnable or disable Telegram-to-Minecraft chat.
enable_ditheringEnable image dithering for Telegram photos.
languageDefault registration-message language.
max_mc_accounts_per_tgMaximum Minecraft accounts linked to one Telegram account.
log_statusControl status logging.
ngrok_authngrok 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 всё уже подготовил.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

26.3.x26.2.x26.1.x1.21.x1.20.x1.19.x1.18.x1.17.x1.16.x1.15.x

Платформы

Поддерживаемые окружения

Сервер

Ссылки

Создатели

Детали

Лицензия:
Опубликован:2 года назад
Обновлён:2 года назад
Главная