COWMODSКаталог модов

paper-telegram-bridge

Connect Telegram chats and Minecraft servers seamlessly.

Автор: pbl01 тыс.5обновлён 28 окт. 2026 г.
УправлениеОбщениеУтилиты

Описание

Paper Telegram Bridge

A fork from spigot-tg-bridge with some new features.

image

This plugin will send chat messages from Minecraft to Telegram, and from Telegram to Minecraft.

How to use:

  1. Download from modrinth and put it in plugins/ directory on your server OR clone this repo and run gradle inside repo's directory.

  2. If you already have telegram bot, skip this step. Otherwise, create it through BotFather. You'll go through step-by-step instructions, give a bot username and most importantly, obtain a bot token. Save this token for future use. Note: in order to make your bot hear raw text messages (not commands), you must disable privacy mode option which is on by default. Go through bot's settings: Bot Settings -> Group Privacy and click Turn Off.

  3. Next, you need to tell plugin about your new bot. You can either:

    • Run Paper server, plugin will log "No config file found! Saving default one.". After that, stop server and proceed to 4th step.
    • Copy config.yml to plugins/PaperTelegramBridge/ in your server directory.
  4. A config.yml is just a valid YAML file, alternative for JSON, but more human-readable. Now, take bot's token which you got in 2nd step and paste them into config.yml, so it looks like this:

    botToken: abcdefghijklmnopq123123123
    # other configuration values...
    
  5. Run Paper server.

  6. Add you bot to chats, where you plan to use it. In each of them, run /chat_id command. The bot should respond and give special value - chat id. Now, open config.yml and paste this ID under chats section, so it will look like this:

    botToken: abcdefghijklmnopq123123123
    chats: [
        -123456789,
        987654321,
        # other chat id's...
      ]
    
  7. (Optional) To enable admin commands like /whitelist, you need to add Telegram user IDs to the admins list in config.yml.

    admins: [
        123456789,
        987654321,
        # other admin user ids...
      ]
    
  8. You can extend config.yml with more tweaks, which are described in the table below, but it's not necessary, plugin will use default values instead, if they're missing. Also, check out the example.

  9. Re-run server or type tgbridge_reload into server's console.

Plugin configuration:

FieldDescriptionTypeRequiredDefault
enableIf plugin should be enabledboolean:x:true
botTokenTelegram bot token (How to create bot)string:heavy_check_mark:-
chatsChats, where bot will work (to prevent using bot by unknown chats)number[] or string[]:heavy_check_mark:[]
topicsTelegram forum topics, if left empty it will use the General topic.number[] or string[]:x:[]
adminsList of Telegram user IDs authorized to use admin commands like /whitelistnumber[] or string[]:x:[]
serverStartMessageWhat will be sent to chats when server startsstring:x:'Server started.'
serverStopMessageWhat will be sent to chats when server stopsstring:x:'Server stopped.'
logJoinLeaveIf true, plugin will send corresponding messages to chats, when player joins or leaves serverboolean:x:true
logFromMCtoTGIf true, plugin will send messages from players on server, to Telegram chatsboolean:x:true
logFromTGtoMCIf true, plugin will send messages from chats, to Minecraft serverboolean:x:true
logPlayerDeathIf true, plugin will send message to Telegram if player diedboolean:x:false
logPlayerAsleepIf true, plugin will send message to Telegram if player fell asleepboolean:x:false
logPlayerAdvancementIf true, plugin will send message to Telegram if player gets an advancementboolean:x:true
logInventoryIf true, plugin will send image of inventory, item or ender chest Read moreboolean:x:true
logWhitelistKickIf true, plugin will send notification when a player is kicked due to not being whitelistedboolean:x:true
stringsDictionary of tokens - strings for plugin i18nMap<string, string>:x:See default config
commandsDictionary of command text used in Telegram botMap<string, string>:heavy_check_mark:See below
telegramMessageFormatFormat string for TGtoMC chat messagestring:x:See default config
minecraftMessageFormatFormat string for MCtoTG chat messagestring:x:See default config
silentMessagesDisable notification in Telegram chatsboolean:x:false
apiOriginUse different API endpoint for the botstring:x:https://api.telegram.org
disableConfigWatchDo not watch the config for changesstring:x:false

Telegram bot commands:

Commands are customizable through config. If command doesn't exist in config, it will be disabled

CommandDescription
/onlineGet players, currently online
/timeGet time on server
/chat_idGet current chat ID (in which command was run) for config.yml
/whitelist(Admin only) Manage server whitelist - list whitelisted players or add/remove a player

Format string:

+--------+ >--minecraftMessageFormat(message)-> +--------------+
| Paper |                                      | Telegram bot |
+--------+ <--telegramMessageFormat(message)--< +--------------+

Applies to telegramMessageFormat and minecraftMessageFormat configurations. Must contain %username% and %message% inside. You can customize message color with it (coloring works only for telegramMessageFormat). You can customize bold/italics/strikethrough formatting (works only for minecraftMessageFormat). See Minecraft message color codes and Telegram message formatting for more information. This feature is related to this issue

Plugin commands:

CommandDescription
tgbridge_reloadReload plugin configuration w/o need to stop the server. Works only through server console
tgbroadcastBroadcast a message to all Minecraft players and configured Telegram chats; usable by players, command blocks, and datapacks with the bukkit.command.say permission

Permissions

PermissionDescription
tg-bridge.silentjoinleaveWhen set to true the bot won't send join and leave messages for that player. It will also be hidden from the /online command.

Inventory

Similar behavior as InteractiveChat plugin (not a dependency!). Commands implemented:

  • [inv]
  • [item]
  • [ender]

sharing a book example

Whitelist Management

Server admins can manage the whitelist directly from Telegram using the /whitelist command:

  • /whitelist - List all whitelisted players
  • /whitelist <player_name> - Toggle whitelist status for a player (add if not whitelisted, remove if already whitelisted)

This command is only available to users listed in the admins configuration field. The plugin will also send notifications when players try to join but are kicked due to not being whitelisted (configurable via logWhitelistKick).

whitelist example

Галерея

UsageIn-gameBook renderingAdvancement

Последние версии

Все версии →
release

paper-telegram-bridge 0.22.2

0.22.2
28 окт. 2026 г.6Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3paper
Скачать
Что нового
+ fix: regression that ignored response messages + send image/video captions as text
release

paper-telegram-bridge 0.22.1

0.22.1
23 окт. 2026 г.34Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3paper
Скачать
Что нового
+ Support for Telegram topics
release

paper-telegram-bridge 0.22.0

0.22.0
20 окт. 2026 г.27Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3paper
Скачать
Что нового
+ Added `/tgbroadcast` command for server broadcasting to both Minecraft chat and Telegram chat. + Update assets for new items added up to 26.3
release

paper-telegram-bridge 0.21.12

0.21.12
25 окт. 2025 г.494Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper
Скачать
Что нового
* Fix for OPs being ignored by join/leave messages and online list by [@A2L5E0X1](https://github.com/A2L5E0X1) in https://github.com/pbl0/paper-telegram-bridge/pull/13
release

paper-telegram-bridge 0.21.11

0.21.11
16 окт. 2025 г.36Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10paper
Скачать
Что нового
New `/whitelist` command for whitelist management. ## Whitelist Management Server admins can manage the whitelist directly from Telegram using the `/whitelist` command: - `/whitelist` - List all whitelisted players - `/whitelist <player_name>` - Toggle whitelist status for a player (add if not whitelisted, remove if already whitelisted) This command is only available to users listed in the `admins` configuration field. The plugin will also send notifications when players try to join but are kicked due to not being whitelisted (configurable via `logWhitelistKick`). [Read more](https://github.com/pbl0/paper-telegram-bridge/blob/master/README.md#whitelist-management)
release

paper-telegram-bridge 0.21.10

0.21.10
7 авг. 2025 г.73Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8paper
Скачать
Что нового
Update assets for 1.21.8 **Full Changelog**: https://github.com/pbl0/paper-telegram-bridge/compare/0.21.9...0.21.10
release

paper-telegram-bridge 0.21.9

0.21.9
11 июл. 2025 г.35Minecraft: 1.21.4, 1.21.5, 1.21.6, 1.21.7paper
Скачать
Что нового
+ Should fix an obscure bug.
release

paper-telegram-bridge 0.21.8

0.21.8
11 июн. 2025 г.40Minecraft: 1.21.4paper
Скачать
Что нового
+ fix: minor issues and remove unnecessary logging
release

paper-telegram-bridge 0.21.7

0.21.7
7 мар. 2025 г.55Minecraft: 1.21.4paper
Скачать
Что нового
+ Improve inventory rendering commands + added render shulker box contents with [item] + improve advancement toast. + Fix on book pagination margin. ![advancement toast](https://cdn.modrinth.com/data/cached_images/36558ab4e4005dea4c12785be6d197c3e6eb1224_0.webp) ![ender chest](https://cdn.modrinth.com/data/cached_images/61b4030fa9a019fd7eef08927e4c306e2841e6c6_0.webp)
release

paper-telegram-bridge 0.21.6

0.21.6
17 февр. 2025 г.33Minecraft: 1.21.4paper
Скачать
Что нового
![Replace this with a description](https://cdn.modrinth.com/data/cached_images/6067c3ef55fa2ee83bde24f61011424b2139390c_0.webp) - Render an advancement toast. - Customize death and advancements messages.