Newon GoogleMake CraftRank a preferred source in Google SearchAdd on Google ›
CraftRank SitesA free website and store for your server Make yours ›AshlarFree server software built on Paper, with DDoS and backdoor protection See Ashlar ›Security RadarA free check of your server's login, anti-bot and proxy settings, only with your OK See how it works ›CommunityAsk questions, share builds and find people to play with Join the forum ›
Resources / Plugins / TgRelay

TgRelay

Two-way Minecraft and Telegram bridge: one long-poll connection, a rate-limited queue, player self-mute with a moderation channel, and several servers on one…

PluginsFree1.21 – 26.x
by Stil00000 · listed from Modrinth
Download ›

Direct download from Modrinth · 2 downloads

Legal notice

Source and ownership. This page was generated automatically from public data that Modrinth provides through its public API. The name, descriptions, images, trademarks and all other content of this project belong to Stil00000 and their respective owners. CraftRank is not the author of this project and is not affiliated with, endorsed or sponsored by its author or by Modrinth.

Hosting and distribution. CraftRank does not host, store, upload or distribute the download files of this project, and no such file is kept on CraftRank's servers. Every download is provided directly by Modrinth from its own servers; the Download button only links to the file there. The license stated on Modrinth is MIT.

Use of public APIs. Modrinth, Hangar (PaperMC) and SpigotMC (through the Spiget API) make their APIs publicly available to third-party websites and applications. Modrinth's Terms of Use give API users a license to download, display and query content through their own services (section “API Usage”), and creators who publish on Modrinth grant Modrinth and its licensees the right to display and distribute their content to third parties (section “User Contributions”). CraftRank uses these APIs in line with the platforms' published rules: it identifies itself in every request and respects their rate limits.

No warranty. The information on this page is provided "as is", without any warranty. Downloading and using this project is at your own risk and subject to the license and terms of its author.

Copyright notices (DMCA). Only the copyright owner or someone authorised to act for them may file a notice, and it must come from a person of legal age or from their parent or legal guardian. A valid notice sent to abuse@craftrank.org must contain: the link of this page; the work claimed to be infringed; your full name, postal address, phone number and e-mail; a statement that you believe in good faith that the use is not authorised by the owner, its agent or the law; a statement, under penalty of perjury, that the notice is accurate and that you are the owner or authorised to act for them; and your physical or electronic signature. Incomplete notices are not processed. Valid notices are acted on within 48 hours, with no need to go through Google.

False notices. Anyone who knowingly misrepresents that material is infringing is liable for the damages caused, including costs and attorneys' fees (17 U.S.C. § 512(f)). Notices filed in bad faith or by someone who does not hold the rights are kept on record and will be contested.

TgRelay screenshot 1

What it does

TgRelay is a plugin for Paper / Spigot servers, made by Stil00000. Two-way Minecraft and Telegram bridge: one long-poll connection, a rate-limited queue, player self-mute with a moderation channel, and several servers on one…

It supports Minecraft 1.21 – 26.x. It has been downloaded 2 times on Modrinth. That puts it at #122 of the 128 voice chat and social plugins listed here. The last update came out on Oct 25, 2026.

Supported versions

26.x1.21

Release history

The newest is 1.3.0, released on Oct 24, 2026. It is made for Minecraft 1.21 – 26.1.2. It runs on Paper and Purpur. The download is 45 KB.

VersionReleasedMinecraftType
1.3.0Oct 24, 20261.21 – 26.1.2Release

Commands

The commands named on the Modrinth page of TgRelay:

/tgrelay

Latest release on GitHub

TgRelay is open source. Its newest release on GitHub is TgRelay 1.13.4 — one console line per outage, published on Nov 18, 2026.

Telegram outages are now one console line, not one per timed-out poll.

On a slow home line a long poll can time out every couple of minutes; the console was printing a

line for each of them while the admins (correctly) stayed silent. Now the console gets a line when

the outage is confirmed — the same poll-failures / outage-seconds threshold the notices use —

and a line when the link is back. Admin notices keep their behaviour exactly as before.

Also: firstFailureAt is cleared on any recovery, not only after a confirmed outage, so a slow

flap does not carry over into the next one.

Full Changelog: v1.13.3...v1.13.4

Before that: TgRelay 1.13.3 — no notice per dropped handshake (Oct 30, 2026), TgRelay 1.13.2 — heads from Mojang (Oct 29, 2026).

Description from the author on Modrinth

TgRelay is a Paper plugin that connects Minecraft chat to Telegram — a group, a channel or a private chat — without leaking a network socket every second. It was written for Losos World, a survival server running since 2014, after the classic TelegramChat plugin pushed the machine into "No buffer space available" with thousands of leaked connections.

If your server needs Minecraft chat in Telegram (and Telegram messages in Minecraft), this is the drop-in replacement that will not take the box down after a week.

Why another Telegram bridge?

The old TelegramChat plugin (1.0.21, December 2022; SpigotMC page) calls getUpdates in a tight loop and leaves every socket behind: about 2.3 new connections per second, several thousand per hour. Windows eventually runs out of ephemeral ports and everything else starts failing — Bedrock players get dropped, RCON stalls, plugins lose access to Mojang.

TgRelay does it properly:

  • Long polling — a single getUpdates?timeout=25 request stays open, so one cycle costs one connection instead of hundreds.
  • One shared java.net.http.HttpClient with a bounded pool: connections are reused and closed on shutdown.
  • Outbound queue with a rate limit — a chatty server cannot flood Telegram and get the bot throttled.
  • Backoff on errors instead of a retry storm; the update offset survives restarts, so old messages are never replayed into the game.
  • Several servers on one bot — a hub/spoke bridge, so a survival world and a creative server report into the same chat, each line prefixed with its server name.
  • No third-party libraries — only the JDK and the Paper API.

Features

  • Minecraft → Telegram: chat, join, quit, deaths and advancements (each event can be disabled).
  • Telegram → Minecraft: messages are printed with tellraw, so they keep colours and are never attributed to a player.
  • Groups, channels and private chats; one bot can post to many destinations.
  • %player%, %message%, %sender%, %server% placeholders in every format string.
  • English, Russian and Chinese locale files, overridable without a rebuild.
  • /tgrelay status shows chats, queue, offset and the moderation route; /tgrelay reload re-reads the config.

Several servers, one Telegram chat

Telegram gives a bot exactly one getUpdates reader, so installing the plugin on a second server with the same token does not work: the two pollers steal updates from each other and one server's chat randomly disappears. The usual advice is "run a second bot" — which is a second chat in every player's list.

TgRelay makes one server the hub instead. It owns the bot; every other server is a spoke that talks to it over loopback HTTP with a shared secret:

hub — the server that owns the bot

server: { name: "Losos" }
relay:
mode: hub
token: "a-long-random-string"
bind: "127.0.0.1:8765"
spokes: ["127.0.0.1:8766"]
format:
from-minecraft: "[%server%] %player%: %message%"

spoke — any other server, same token

server: { name: "Build" }
relay:
mode: spoke
token: "a-long-random-string"
bind: "127.0.0.1:8766"
hub: "127.0.0.1:8765";

One chat gets both worlds, and every line says where it came from:

[Losos] Steve: hi there
[Build] Alex: testing the roof

  • The bot belongs to the hub only; a spoke needs no token of its own, so there is nothing to leak and nothing to duplicate.
  • Requests carry the shared secret in X-TgRelay-Token; the listener binds to loopback unless you change relay.bind.
  • Muted players are still routed to the moderation channel by the hub, so /tgrelay off behaves the same on every server.
  • A spoke retries three times before giving up and logs the loss; a dead spoke is reported by the hub once per five minutes.

With no relay and server sections the plugin runs exactly like a single-server install — the feature is opt-in.

Privacy: let players mute themselves

A player can keep their own messages out of the public chats:

  • /tgrelay off — the player's messages stop going to bot.chats;
  • /tgrelay on — back to normal;
  • /tgrelay status — what their current state is.

Muted messages are not deleted. They are forwarded to a moderation channel with a [mute] prefix, so admins keep the full picture while everyone else sees nothing:

  1. moderation.chat — a separate Telegram chat the players are not in (simplest: add the bot there, paste the id, done);
  2. otherwise a DM to every operator with a linked account — operators come from ops.json, so there is no second list to maintain;
  3. otherwise the server console, so nothing disappears silently.

Linking is a one-time code (/tgrelay link), because Telegram knows user ids while Minecraft knows nicknames — a stranger cannot claim somebody else's account by typing a nickname.

Install

  1. Drop TgRelay.jar into plugins/.
  2. Start the server once, then edit plugins/TgRelay/config.yml:

bot:
token: "123456:AA..." # from @BotFather
chats:

  • 123456789 # a DM with the bot
  • -1001234567890 # a group the bot is a member of
  1. Run /tgrelay reload.

For a group, add the bot to the group first — otherwise Telegram answers chat not found, which is exactly the failure that made the old plugin spin.

Commands and permissions

Command · Who · What
/tgrelay off / on · players · hide or restore your own messages
/tgrelay link / unlink · players · pair or unpair a Telegram account
/tgrelay status · players and admins · your state; admins also see the relay counters
/tgrelay reload · tgrelay.admin · re-read config.yml
/tgrelay testmute · tgrelay.admin · send a test message through the moderation route

Compatibility

  • Paper and forks that keep the Paper API (Purpur, and similar) — the plugin uses AsyncChatEvent.
  • Java 21+, tested on Paper 1.21 and on a live server with Geyser, ViaVersion and Floodgate installed.
  • Can run side by side with TelegramChat, but only one plugin may hold a bot token at a time: Telegram allows a single getUpdates consumer per bot.

Open to ideas

This plugin is maintained in the open and it is shaped by the people who run it. If something is missing — a different relay target, per-world filters, a web dashboard, a locale you need — open an issue or a pull request on GitHub. Bug reports with a log excerpt are especially welcome.

Where it runs

TgRelay powers the Telegram bridge of Losos World — a survival server that has been running since 2014 without a single wipe, without private zones and without donations.

The plugin is not tied to that server in any way: any Paper server can run it with its own bot token.

Links

TgRelay is not affiliated with Mojang or Microsoft.

Written by Stil00000. Read it with pictures on Modrinth.

How to install TgRelay

  1. Make sure your server runs Paper and Spigot on Minecraft 1.21 – 26.x.

  2. Download the .jar file from Modrinth and put it in the plugins folder of your server.

  3. Restart the server. Avoid /reload, many plugins do not handle it well.

  4. Type /plugins in the console: TgRelay should be listed in green. Its config files are created in the plugins folder on the first start.

Full guide: How to install plugins on a Minecraft server

Compatibility

Minecraft versions
26.x, 1.21
Runs on
Paper, Spigot
Edition
Java
Needs
Nothing else
License
MIT
Price
Free
Upkeep
Actively updated (Nov 26, 2026)

TgRelay compared with similar ones Compare all alternatives

ResourceDownloadsVersionsLast updatePrice
TgRelaythe one you looked at21.21 – 26.xOct 25, 2026Free
MineBridgearidrochatterjee571.20 – 26.x3 days agoFree
Bedrock Simple VoicePietris2,6371.20 – 26.x9 days agoFree
Rest SonarRestStudio121.21 – 26.x13 days agoFree

Questions

Does TgRelay work on Minecraft 26.x?

Yes. TgRelay supports Minecraft 26.x. All supported versions: 26.x, 1.21.

Is TgRelay free?

Yes. TgRelay is free to download from Modrinth.

Which server software does TgRelay run on?

TgRelay runs on Paper and Spigot servers.

Is TgRelay server-side?

Yes. TgRelay is a server plugin: it goes in the plugins folder of the server, not in the mods folder of a player's game.

Is TgRelay still updated?

Yes. The last update came out in the past day.

What are the best alternatives to TgRelay?

The closest ones are MineBridge, Bedrock Simple Voice and Rest Sonar. Compare all alternatives

Alternatives to TgRelay

MineBridgePlugins · 1.20 – 26.x

MineBridge connects Minecraft and Discord with seamless two-way chat, configurable channels, bot filtering, and safe message handling for your community.

Free57 downloads
Rest SonarPlugins · 1.21 – 26.x

Server-side Minecraft anti-bot connection filtering with configurable per-IP and subnet rate limits, adaptive flood protection, temporary blocks, and admin…

Free12 downloads
justPollsPlugins · 26.x

Timed in-game polls with a clickable dialog menu, SQLite/MariaDB storage and Discord webhook results.

Free4 downloads
Compare all alternatives ›

Reviews

–★★★★★
0 reviews
50
40
30
20
10

Log in to leave a review.