TGuard Connect Bot
Security 9 min read

How to Block Users from Specific Countries in a Telegram Group or Channel

Facebook, Instagram, X and TikTok all get the same question: how do I block countries? Telegram never tells anyone a member's country. What a bot can see is the name — its alphabet, and with a trained model, a fair guess at the country behind it. Together that is enough to stop most of the waves admins actually complain about.


Three hundred new members overnight. Mohammed, Priya, 王伟, a run of names that read right to left — and not one extra view on the morning post. The channel is about woodworking in Ohio.

The first thing most admins look for is a country block, because Facebook has one for Pages and every other platform gets asked for one. Telegram doesn't have it. Here is why, and what works instead.

Telegram doesn't tell anyone where a member is

Not you, not your moderators, not any bot you add. A member's phone number is hidden unless they choose to share it, IP addresses never leave Telegram's servers, and there is no country field on a user. When someone joins, a bot receives their first name, last name, username, whether they have Premium and a few technical flags. That is the whole picture.

So any "country filter" you find for Telegram is guessing from something. The only thing worth guessing from is the name — and specifically, the alphabet it is written in.

Telegram hides a member's country from everyone. The script of their name it shows to every bot.

Where the waves of foreign names come from

The boring answer covers most cases: someone bought members. The cheapest packages don't use bots at all; they pay real people a few cents to join a channel. A few cents is worth the click in India, Nigeria or parts of Southeast Asia, which is why bought batches look the way they do. We went through how these services price and deliver in our breakdown of subscriber boosting.

Account farms are the second source. A brand-new account with zero subscriptions looks suspicious to Telegram and to anti-spam tools, so farms "warm up" their stock by joining public channels they find in search. Being public is all it takes to end up on that list.

And sometimes the order wasn't yours. A competitor, or an ad seller you turned down, can buy you a thousand empty accounts to wreck your numbers before a campaign. In groups the pattern shifts again: Arabic and Chinese names there more often belong to bots that join to post an ad, which is covered in how to stop spam in a Telegram group.

Silent members still cost you. A 2,000-member channel averaging 600 views has a 30% ERR. Add 300 members who never read, and with the same 600 views it drops to 26%. Telegram's own channel statistics also include a languages chart, and an advertiser who sees a fifth of your audience in Arabic and Hindi won't ask who ordered them.

Filtering by the alphabet of the name

TGuard has a setting under "🔰 Security settings and clean up" called "🔤 Alphabet filter". You tick the scripts you don't expect in your audience — Arabic, Hindi, Chinese, Japanese, Korean, Thai, Hebrew — and the bot stops letting in anyone whose first or last name contains their letters. It works in channels and groups alike.

New members are banned or kicked, depending on your channel's ban-or-kick setting. Join requests are handled more firmly: the request is declined and the requester banned in the same step, because a decline alone just invites a new request a minute later. The check runs before captcha and before auto-approval, so these requests never reach your queue.

The part we spent longest on is the two-letter rule. Before shipping, we ran the filter over 9.9 million names from our own database. Banning on any single character would have been a mess: 79% of "Korean" matches were invisible Hangul filler characters people use to make a blank name, and 58% of "Thai" matches were diacritics in stylised Russian nicknames. So the filter counts only letters and needs at least two. "Anna シ" gets in. "Anna 李娜" doesn't.

A few things worth knowing before you switch it on:

  • Hindi covers the other Indian scripts too — Bengali, Tamil, Telugu — since spam from India is signed in all of them.
  • Arabic script is also used for Persian and Urdu, so the Arabic filter catches those names as well.
  • Japanese names often contain kanji, which are Chinese characters, so the Chinese filter will stop some Japanese members too.

What it won't catch

Rahul Kumar written in Latin letters walks straight in. So does Ahmed. The filter sees an alphabet, not an origin, and a Latin-script name looks like any of your readers. For those waves there is the geo filter, covered next, plus the other layers: a captcha on entry, a join-rate limit, and TGuard's shared blacklist of accounts already caught attacking other channels.

It also only checks people as they join. Members already inside are untouched; the same section has "🧹 Cleanup after bot attack" for subscribers who were boosted in before. And think about who your real audience is. A channel for the Russian-speaking community in Israel will have readers with Hebrew names, and the Hebrew filter would hit them first.

The geo filter: a country guessed from the name

Rahul Kumar in Latin letters is exactly why "🌍 Geo filter" now sits next to the alphabet filter. Telegram still won't hand over anyone's country, so TGuard guesses it. Our own model breaks the first name, last name and username into fragments like "kumar", "-ova" or "mohammed" and names the most likely country. It was trained on 3.3 million labelled names.

How well it guesses depends on the alphabet, and you should know that before switching it on. Names in non-Latin scripts make up 41% of everyone joining channels under TGuard, and for them the model gets the country right 94% of the time. Latin names are a coin toss — roughly half: "Alex" could be from anywhere. When the model isn't sure, the country stays blank and the filter leaves that member alone.

There are two modes, and you can turn on either or both:

  • "Remove bot geos" removes new members from India, Pakistan, Bangladesh, China, Japan, Korea, Arab countries, Iran and Israel;
  • "Keep CIS only" lets in Russia, Belarus, Kazakhstan, Uzbekistan, Kyrgyzstan, Tajikistan, Turkmenistan, Armenia, Azerbaijan and Moldova, plus Ukraine and Georgia, and removes everyone else.

Unlike the alphabet filter, the geo filter doesn't work at the door. The model needs a minute or two after someone joins, so every 10 seconds the bot looks at everyone who joined in the last hour and bans or kicks those whose country matches the mode. A new member may flash in the counter, but won't stay. People who were in the channel before you switched it on are left alone. It can't decline join requests either — until someone has joined there is no country yet, so requests remain the job of the alphabet filter and the captcha.

Be careful with "Keep CIS only" if your readers use Latin names. The model may file Alex Smith from Samara under the US, and he leaves with the bots. A channel where nearly everyone writes their name in Cyrillic has little to worry about; a tech channel full of Latin nicknames should start with "Remove bot geos" instead.

Turning it on

  1. Add @channel_guardian_bot as an admin of your channel or group with the right to ban users.
  2. In the bot, pick the channel → "🔰 Security settings and clean up" → "🔤 Alphabet filter".
  3. Tap the scripts to block. Tap again to remove one; changes apply immediately.
  4. Next to it, in "🌍 Geo filter", pick a mode: "Remove bot geos" or "Keep CIS only".
  5. Check "⛔ Configure how to block: ban or kick" — the filter uses whatever is set there.
  6. If a wave already landed, use "🧹 Cleanup after bot attack" in the same section.

Anyone can open the filter screens and read how they work; switching them on needs a TGuard subscription. If the script or geo mode you need isn't listed, message support and it gets added.

Telegram won't let you close a channel to a country, and no bot can see a member's real location. What you can do is read the one thing Telegram shows at the door — the name — for both its alphabet and the country it most likely belongs to, and that is usually enough to keep the next wave out of your member count.

Frequently Asked Questions

Can you block a country in a Telegram group?

Not directly. Telegram does not show admins or bots a member's country, phone number or IP address. What a bot does see is the member's name, and TGuard reads it two ways. The alphabet filter refuses anyone whose name contains letters of the scripts you pick. The geo filter guesses the country from the name and removes new members from outside the CIS, or from the countries most bot waves come from.

Why are random Indian, Arabic or Chinese accounts joining my Telegram channel?

Usually because somebody bought members. The cheapest packages fill orders with people paid a few cents to join, and that pay only matters in places like India, Nigeria and Southeast Asia. Fresh accounts being warmed up also subscribe to random public channels so they look active. If you bought nothing, the order may have been placed by someone else.

Will the filter ban someone with one emoji-like character in their name?

No. The filter only fires when a name contains at least two letters of a selected script. A single decorative character, such as a lone シ at the end of a nickname, is treated as decoration and let through.

Connect TGuard

Automatic bot protection, anti-raid, and subscriber analytics for your Telegram channel.

🛡 Launch @channel_guardian_bot
TGuard
Channel protection. Analytics. Audience quality.
TGuard Bot on Telegram
Contacts
Legal Information
© 2023-2026 TGuard — a service for protecting Telegram channels from fake accounts and bots.