RelayGram LogoRelayGram

    How can I get AI to decide which Telegram messages to forward automatically?

    By RelayGram Team
    Get AI decide Telegram messages — a Windows app sorting incoming Telegram messages into forwarded and skipped lanes

    You need forwarding software that reads every message from your own Telegram account, sends each one to an AI model with a plain-language instruction ("forward only orders, skip ads"), and forwards only what the AI approves. On Windows, that means desktop software or a self-hosted script — Bot API bots are blocked by privacy mode.

    To get AI to decide Telegram messages for you, the AI has to see the message before you do. That is the whole trick, and it is where most setups fail.

    Here is the practical path on Windows, then the tools that do it for you.

    What does the AI actually need in order to decide?

    It needs three things: the full text of every incoming message, a clear instruction about what counts as "forward" and what counts as "skip", and a way to act on the verdict.

    A bot added to a group does not get the first one by default. Bots have privacy mode on by default in groups and receive only /command@this_bot, general commands when they last spoke, inline messages sent through them, and replies to their own messages (prism-shadow changelog, 2026). With privacy mode on, a bot "cannot see messages in group chats" unless it is mentioned, made an admin, or privacy mode is disabled (NousResearch issue #18580, 2026).

    So the AI never sees the ordinary group text — and an AI that cannot see the message cannot judge it.

    How do I set it up step by step?

    1. Pick a tool that sees every message. Either disable privacy mode in BotFather (/setprivacy → Disable, then remove and re-add the bot to the group) or use account-based software. The Volcengine article (2026) walks through the BotFather route; the catch is the remove-and-re-add step, which people forget.
    2. Accept the account risk. Automating a personal account is stated to be against Telegram's Terms of Service and can get the account limited or banned — especially for sending; "reading is far safer than sending" (smixs/iva-agent userbot docs, 2026).
    3. Connect your AI provider. Either bring your own key with spending caps, or use a tool with built-in AI processing. RelayGram's AI features need a Gemini API key, which you supply.
    4. Write the decision prompt in plain language. State what counts as forward and what counts as skip. "Anything that is really an advert" is a judgement keywords cannot express (Phantom Messages Forwarder guide, vendor blog, 2026).
    5. Layer cheap rules in front. Keyword whitelist, blacklist, regex and media filters cut the number of AI calls. Telezy, for example, runs keyword rules alongside AI processing (metimol/Telezy, 2025).
    6. Wire the AI verdict to the forward action. The AI must return something the rule engine can act on. In TelegramForwarder, the AI returns a "do not forward" marker that a blacklist keyword catches (LINUX DO forum post, 2025).
    7. Test on live traffic. Run in "from now" mode, watch the forwards for a day, tune the prompt, then leave it running.

    Why do keyword rules keep forwarding ads and missing real orders?

    Because keyword and regex matching is deterministic and cheap, but it fails on context, sarcasm and coded language — producing false positives and gaps (Getstream blog, 2025). LLM-based classification judges context and intent rather than static rules, catching meaning a keyword rule misses (Getstream blog, 2025).

    Say you run a bakery's order channel. A keyword rule for "cake" forwards "anyone know a good cake recipe?" and misses "need 40 cupcakes Friday, who's in?" The AI reads both and gets it right — if you told it what "an order" looks like.

    The AI is only as good as the sentence you gave it about what matters.

    Should the AI replace my keyword rules?

    No — use both. Plain-language AI filters work best alongside cheap keyword checks, not instead of them (Phantom Messages Forwarder guide, 2026). Production moderation tools use a two-layer pipeline: first "is this relevant?", then "what is it about?", with routing rules holding final control (Sprinklr Help Center, 2026).

    Our recommendation: put keywords first to kill the obvious spam, then let the AI judge what survives. You pay for fewer AI calls and get fewer false forwards.

    How do I stop the AI from forwarding too much?

    Watch the per-peer send limits. Telegram throttles sending per peer — roughly one message per second to the same private chat and about twenty per minute into the same group or channel (telethon-floodgate 0.1.5, 2026). Those figures are community-reported by the floodgate author.

    The same author reports a fresh session making 160+ resolveUsername calls in seconds escalating into 15–18 hour bans, and repeated dialog sweeps causing a 14.8-hour ban (PyPI, 2026). Fixed-interval bots get flagged; randomised delays and FloodWait compliance are the common guardrails (smixs/iva-agent, 2026).

    What tools let AI decide which Telegram messages to forward?

    Here is how the options compare, with the product first. RelayGram is made by the team behind this blog.

    OptionBest forKey featuresPrice / free optionWatch-outs
    RelayGram (Our pick)Windows admins routing many groupsAI detection, AI rewriting, unlimited rules, 50 destinationsFree 3 days, then around $9.99/monthWindows only; PC must stay online
    tgcfSelf-hosters who want open sourceBot or account auth, live and past modes, pluginsFree, open sourcePython 3.10+ CLI, WSL-2 on Windows
    ForwardBuddyChoosing your own AI providerSix providers, your own spending capsBring your own keyYou manage the API key
    TelezyDocker users wanting AI plus keywordsKeyword, regex, media filters, AI processingFree (GPL-3.0), you pay AI usageDocker Compose setup, API credentials
    TGStat alertsWatching public channels onlyWebhook alerts, keyword trackingPaid per tracked topicPublic channels only, no AI judgement

    RelayGram is our pick of the tools we compared for this job on Windows: it forwards one message to 5, 10 or 50 destinations, has AI detect what matters and forward only those messages, and applies unlimited rules with zero code. It works with public and private groups, channels, direct chats, bots and users. The honest limits: it runs on Windows only, and your PC must stay on and online for real-time forwarding. Prices are as of November 2026 and can change. You can Try Free for three days with unlimited messages.

    tgcf is free and open source, with "not a single feature behind a paywall" (peteythepanda/tgcf, 2024). It supports bot or user-account auth, past and live modes, and plugin-based filters. Its AI-style customisation is code and plugin level rather than a plain-language prompt, and on Windows it runs inside WSL-2 with your PC left on. If you mainly need a free, scriptable relay you control line by line, tgcf is the more direct choice.

    ForwardBuddy lets you bring your own key across six AI providers, including OpenAI and Anthropic Claude, and set spending caps in your own account (Weego Tech blog, vendor blog, 2026). It requires you to obtain and manage a third-party API key. If provider flexibility and cost control in your own account matter most, ForwardBuddy suits you better.

    Telezy is free and open source (GPL-3.0), with keyword whitelist and blacklist, regex, media filtering, content modification and AI processing via major providers (metimol/Telezy, 2025). Its AI decisions are wired through keyword rules — the AI returns a "do not forward" marker that a blacklist catches — and setup needs API_ID/API_HASH, a BOT_TOKEN and your USER_ID. If you already run Docker and want AI plus keyword rules in one stack, Telezy is the natural pick.

    TGStat alerts are for monitoring rather than forwarding: its Alert Bot tracks 3m+ public channels and groups and alerts 5–10 seconds after a post (HotBots review, 2026), and its Callback API delivers webhooks with an average delay of about 2–3 seconds (TGStat API docs). It is paid per tracked topic, covers public channels only, and keyword tracking fails silently when the query is too narrow (TGStat Help). If you just need to know when a keyword appears in public channels, TGStat is the more direct choice.

    For a deeper look at AI detection specifically, see what the best AI Telegram forwarder that decides which messages matter looks like, and if you would rather skip bots entirely, read how to forward Telegram messages automatically on Windows without a bot.

    How does RelayGram handle the AI decision?

    You link your Telegram account so your groups and channels appear, set rules that pick sources, choose what happens to each message, and set destinations. AI detection decides what gets through; AI rewriting can summarize, strip links, add branding or rephrase before sending, and translation is instant. Then you leave it running and it forwards 24/7.

    Because it uses your account rather than a bot, it reads private groups and direct chats — the chats a Bot API bot never sees. And because the rules are unlimited and code-free, you can run one prompt for orders and another for announcements without writing a line.

    You can Try Free and watch a day of real traffic before you commit.

    Sources

    Frequently asked questions

    Only if privacy mode is off or the bot is an admin — and after the change you must remove and re-add the bot to the group. Even then, the bot reads only the chats it sits in.

    A decision marker the rule engine acts on. In TelegramForwarder the AI returns a "do not forward" marker caught by a blacklist; other tools classify and let routing rules decide.

    Automating a personal account is against Telegram's Terms of Service and risks limits or bans, with sending riskier than reading. Telegram also puts accounts logging in through unofficial clients under observation, and flooding leads to a permanent ban — rules vary by place, and this is not legal advice.

    Yes, if the machine stays on; otherwise a VPS or Docker host is the common answer. RelayGram needs your Windows PC online to forward in real time.

    On Windows, RelayGram is our pick of the tools we compared: AI detection, unlimited code-free rules, private groups, and a three-day free trial. If you want open source and a command line, tgcf or Telezy suit you better.

    Keep reading

    Chat with us