TgAuth2
by annimir
TgAuth2 lets server owners verify players through a Telegram bot login, with 12-hour device sessions that require fresh confirmation on a new device or IP.
What it does
A player who joins the server types tgauth link and is sent to a Telegram bot. The player opens the chat, sends start to the bot, and the bot checks the whitelist before issuing a 6-digit code. Once that code is entered, the Telegram account is permanently linked to the player's server account, so later logins can be confirmed from Telegram alone.
Each login is confirmed in the Telegram chat with inline Yes and No buttons. A device that the player has used before stays trusted for a 12-hour session, while a new device or a changed IP prompts a new confirmation. The fingerprint combines the IP address with the player UUID, so two players behind the same NAT still get separate fingerprints. A player using a VPN whose IP changes has the session invalidated and must confirm through Telegram at the next login.
The mod is server-side only and is written for NeoForge 1.21.1. Only Telegram IDs on the whitelist can register, so the server owner controls who gets an account. The bot token is created with BotFather, and Telegram IDs can be collected by having players write to userinfobot and copy the Id. The mod works with offline mode servers, since UUID matching is provided by NeoForge in both online and offline modes. It is released under the Apache License 2.0 and is open source, with public links for the source code and issue tracker.
Key features
Telegram bot login
Players confirm their identity through a Telegram bot chat rather than through a password stored on the server.
Whitelisted registration
Only Telegram IDs on the whitelist can register, so the server owner decides which accounts are allowed.
12-hour device sessions
A known device and IP stay signed in for 12 hours, and a new device or IP needs a new Telegram confirmation.
Inline confirmation buttons
Login requests arrive with Yes and No buttons directly in the Telegram chat.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
KsuChat (TG Bridge) is a NeoForge 1.21.1 mod that runs on client and server, under the MIT License and open source, so it is a chat bridge rather than a login system. TeleFabric is open source under the MIT License and server-side only, but it targets Fabric 1.21.4 instead of NeoForge 1.21.1. Clearcheck is open source under the GNU Lesser General Public License v2.1 only, runs on client and server, and is built for NeoForge 1.21.1.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| TgAuth2 | NeoForge | 1.21.1 | Server-side only | 2026-05-04 |
| KsuChat (TG Bridge) | NeoForge | 1.21.1 | Client and server | 2026-10-04 |
| TeleFabric | Fabric | 1.21.4 | Server-side only | 2025-09-07 |
| Clearcheck | NeoForge | 1.21.1 | Client and server | 2026-08-25 |
Questions
Does TgAuth2 need to be installed on the client?
Does TgAuth2 work on offline mode servers?
How are Telegram IDs collected for the whitelist?
In the catalog
TgAuth2 is one of 5,392 Social mods on ModsFinder, and one of 1,784 Social mods for NeoForge. 32,366 mods support Minecraft 1.21.1.
Similar mods
What the author says
Open @BotFather → /newbot → copy the token. Each player writes to @userinfobot → copies their Id.
Official listing
- Modrinth page
- modrinth.com/mod/tgauth2
- Owner
- annimir
- Published
- 2026-05-04
- Updated on Modrinth
- 2026-05-04
- Facts verified
- 2026-10-15
