Skip to content
Telegram station logoTelegramMT · Station
Telegram Bot DevelopmentBy Telegram Technical Team

How to use BotFather to create a Telegram bot for automated replies?

Learn how to use BotFather to create a Telegram bot for automated replies, with token setup, webhook vs polling, limits, and rollout steps.

how to create telegram bot, BotFather automated replies, telegram bot setup guide, automated reply configuration, telegram bot not responding, BotFather bot tutorial, create telegram bot with BotFather, telegram bot automation

What BotFather Actually Does — and Where the Automated Replies Come From

Using BotFather to create a Telegram bot for automated replies is one of the shortest setup paths in messaging automation: a chat with @BotFather, two naming prompts, and you hold an API token. What that token does not give you is a reply engine. BotFather is the official registration and configuration bot for the Telegram Bot API — it reserves your bot's username, issues and rotates credentials, and controls how the bot appears and behaves in group chats. The actual automation lives in a program or platform that reads incoming updates and calls the Bot API to answer them. Holding that division in mind from the first minute saves a surprising amount of time spent hunting for a feature that was never part of the tool.

That split matters because most first-time failures are not caused by a wrong BotFather command. They are caused by treating BotFather as if it were an autoresponder. If you expect a keyword field somewhere in the chat, you will keep looking for a screen that does not exist. If you understand that BotFather hands you an identity and the Bot API hands you the message stream, the rest of the work becomes a small, testable engineering task. The confusion, in other words, is conceptual before it is technical — and correcting it early is far cheaper than debugging code that was never the problem.

It is also worth separating this from Telegram's account-level business features. Telegram Business adds greeting messages, away messages, and quick replies, but those apply to a personal account handling human conversations — not to a bot. Empirical observation across support teams suggests the two are frequently confused: people enable Business auto-replies and then wonder why their bot token is not answering anyone. The bot path described here is independent of those account settings, so you can leave them exactly as they are.

What BotFather Actually Does — and Where the Automated Replies Come From
What BotFather Actually Does — and Where the Automated Replies Come From

Feature Positioning: Identity Layer vs Message Layer

Think of the whole system as two layers. The identity layer is BotFather: it owns the bot's username, display name, profile picture, description, About text, command menu, group privacy mode, and the auth token used to authenticate every API call. The message layer is the Bot API: getUpdates or setWebhook for receiving, and sendMessage and friends for replying. Once you can name which layer a setting belongs to, most configuration questions answer themselves.

Boundaries are easier to reason about once that split is explicit. BotFather cannot inspect message content, cannot run logic, cannot schedule a delayed reply, and cannot store conversation state. Conversely, your program cannot change the bot's username — only BotFather can, and username changes are not a casual operation because every deep link already shared in the wild points at the old one. Advanced users usually keep a written note of which layer owns which setting precisely so they do not spend an afternoon debugging code for a problem that lives in a chat with a management bot.

There is one more boundary worth naming. A bot cannot start a conversation with a user who has never contacted it; Telegram requires the user to open the chat first. Automated outreach to arbitrary users is not a supported behaviour of the Bot API, so any tutorial promising cold outreach through a bot is describing something outside the platform's design. Plan your automation around inbound-first conversations, and treat every outgoing message as a response to an existing relationship rather than a first contact.

Prerequisites and the Shortest Reachable Path

You need a Telegram account tied to a phone number, a current client (the latest version as of this writing on Android, iOS, Desktop, or Web), and somewhere to run code — a laptop is enough for testing, a small always-on host or serverless function for production. Two-factor authentication on the owning account is strongly advisable, because whoever controls that Telegram account controls every bot it created. That last point is easy to overlook: the bot has no password of its own, so account security is bot security.

The shortest reachable path is identical on every platform and takes only three actions: search for the management bot, open it, and send the creation command. Platform differences are purely about where the search box sits:

  • Android: tap the search icon at the top of the chat list, type @BotFather, and open the verified result.
  • iOS: pull down on the chat list to reveal the search field, type @BotFather, and tap the result.
  • Desktop: click the search field in the upper-left of the window and type @BotFather.
  • Web (browser client): use the search field in the left column; behaviour matches Desktop.

Once the chat is open, press Start if the button appears — newer clients show it automatically for bots you have never contacted. You can then either tap the command suggestions BotFather offers or type the command manually. Typing manually is faster on Desktop and avoids mis-taps on mobile, where the suggestion list can be long.

Creating the Bot with /newbot

Send /newbot. BotFather asks two questions in sequence. The first is the display name — free-form, visible in chat headers and search results, and changeable later with /setname. The second is the username, which has hard rules: it must be globally unique, it must end in bot (for example AcmeSupportBot or acme_support_bot), and it is what appears in links such as t.me/YourBot. Because the two prompts look similar, it helps to decide both names before you start typing.

If the username is taken, BotFather says so immediately and lets you try again — there is no penalty, but there is also no reservation system, so pick something you can still tolerate in a year. A practical naming rule from experience: derive the username from the team or product name plus a short purpose suffix, and keep the display name human-readable while the username stays machine-friendly. Changing the username after launch breaks existing links and any inline-mode mentions, so treat the first choice as semi-permanent.

On success BotFather replies with a confirmation that includes the bot's link and an auth token in the form <numeric-id>:<long-random-string>. That token is a password: anyone holding it can send messages as your bot, read its updates, and change its webhook. Store it in an environment variable or a secret manager, never in a repository, a screenshot, or a shared chat. If it is ever exposed — including being pasted into a support thread — rotate it immediately with /revoke.

Warning: the token line in the BotFather chat is plain text. Screenshots of that message are a common leak vector. If you need to keep a record, copy the token directly into your secret store and move on.

Confirming the Credential Before Writing Any Logic

Before building reply rules, verify the token works. The getMe method returns the bot's identity and is the cheapest possible smoke test:

curl -s 'https://api.telegram.org/bot<YOUR_TOKEN>/getMe'

A successful response contains "ok": true and a result object with the bot's id, name, and username. If instead you receive 401 Unauthorized, the token is wrong, was revoked, or contains a stray whitespace character from a copy-paste. This single check eliminates a large share of later confusion, because it separates credential problems from logic problems. Doing it now, with nothing else in the system, means any future failure has fewer possible causes — a discipline worth repeating at every stage rather than only at the start.

Shaping the Public Surface: Description, About Text, and Commands

An automated reply bot is judged in its first three seconds, before it answers anything. BotFather exposes several presentation settings, and the two that get confused most often are /setdescription and /setabouttext. The description is shown when a user opens the chat for the first time, before they send anything — it is your one screen of onboarding. The About text appears on the bot's profile page and travels along when someone shares the bot's link. Write them differently: the description should state what the bot does and what to type first; the About text should read well out of context.

The command menu, configured with /setcommands, is the highest-leverage automation surface you have. BotFather expects one entry per line in the format command - description. The menu is what turns an unknown bot into a self-documenting one, and it also drives the autocomplete list users see when they type a slash. Because the menu is public and short, keep it focused on entry points rather than internal debugging commands. If your list grows unwieldy, that usually signals that the bot is trying to do too many unrelated jobs in one identity.

For visual identity, /setuserpic accepts an image that reads at small sizes — a square logo with generous padding survives the circular crop better than a wordmark. Group behaviour has two separate switches: /setjoingroups decides whether the bot may be added to groups at all, and /setprivacy decides what it can see once there. Privacy mode is on by default, meaning the bot receives only messages that start with a slash or mention its username, plus replies to its own messages and service events. Turning privacy mode off makes the bot receive every group message — a significant increase in traffic and in your responsibility for that content, so treat it as a deliberate decision rather than a convenience toggle.

Choosing the Reply Engine: Long Polling or Webhook

There are exactly two supported ways to receive updates, and the choice shapes your hosting, latency, and cost profile. Long polling means your program repeatedly calls getUpdates, holding the connection open for a while so Telegram can return updates the moment they appear. A webhook means you register an HTTPS URL with setWebhook and Telegram delivers each update to you as an HTTP POST. Only one mode may be active per token at a time. The table below compares the two along the dimensions that tend to decide the matter in practice.

Dimension Long polling Webhook
InfrastructureAny host that can make outbound HTTPS calls; no public address neededPublic HTTPS endpoint; documented webhook ports are 443, 80, 88 and 8443
Idle costAn always-running process that is mostly idleServerless-friendly: you pay for invocations, not for uptime
Local developmentWorks from a laptop with no tunnellingNeeds a tunnel or a deployed staging endpoint
Failure visibilityFailures surface as errors in your own loopFailures surface via getWebhookInfo and retry behaviour
Best fitPrototypes, internal tools, low-volume botsProduction bots on serverless or container platforms

A workable decision rule: start with polling while you are still discovering what the bot should say, then migrate to a webhook once the reply rules are stable and you care about cold-start responsiveness. Migration is one API call plus a deployment, so there is no lock-in. What you should avoid is running both at once or leaving a stale webhook registered while you debug locally — that combination produces the classic 409 Conflict error discussed later.

The Minimal Polling Implementation, Step by Step

The following example is deliberately small: a dictionary of exact-match replies, a loop that reads updates, and a single sendMessage call. It is illustrative code rather than a production template — adapt it to your language and framework.

import os, time, requests

TOKEN = os.environ['BOT_TOKEN']
API = f'https://api.telegram.org/bot{TOKEN}'

REPLIES = {
    'hours': 'Support hours are 09:00-18:00 on business days.',
    'status': 'All systems are operating normally.',
}

def handle(update):
    msg = update.get('message')
    if not msg or 'text' not in msg:
        return
    chat_id = msg['chat']['id']
    text = msg['text'].strip().lower()
    answer = REPLIES.get(text, 'Sorry, I did not understand. Send /help.')
    requests.post(
        f'{API}/sendMessage',
        json={'chat_id': chat_id, 'text': answer},
        timeout=10,
    )

offset = None
while True:
    params = {'timeout': 30, 'allowed_updates': ['message']}
    if offset is not None:
        params['offset'] = offset
    resp = requests.get(f'{API}/getUpdates', params=params, timeout=40).json()
    for update in resp.get('result', []):
        handle(update)
        offset = update['update_id'] + 1
    time.sleep(0.5)

Three details carry most of the correctness. First, the offset parameter: passing update_id + 1 confirms all earlier updates, so a restart does not replay them. Without it, your bot re-answers the same messages every time the process restarts — the single most common cause of duplicate replies in beginner deployments. Second, the long-poll timeout on the request: it lets Telegram hold the connection instead of making you hammer the endpoint. Third, the short sleep between iterations prevents a busy loop when Telegram returns an error immediately.

Note also that the handler ignores updates without a message field. Real traffic includes edited messages, channel posts, callback queries from inline buttons, and membership service events. Filtering early keeps the reply logic readable, and it prevents the bot from answering things it was never meant to answer.

Registering a Webhook and Verifying It

Moving to push delivery is a single call. The secret_token parameter makes Telegram include a header on every delivered request, which lets your endpoint reject traffic that did not come through the expected channel:

curl -s -X POST 'https://api.telegram.org/bot<YOUR_TOKEN>/setWebhook' \
  -d 'url=https://your-domain.example/telegram/hook' \
  -d 'secret_token=<LONG_RANDOM_STRING>' \
  -d 'allowed_updates=["message","callback_query"]'

The URL must be HTTPS and must be reachable from the public internet; the documented webhook ports are 443, 80, 88 and 8443, which occasionally matters behind restrictive corporate networks. The Bot API also supports supplying a certificate for self-signed setups, but for most teams a standard certificate from a managed platform is simpler and easier to renew. Your endpoint should return a fast success response and process the update asynchronously where possible, because Telegram treats slow or failing endpoints as delivery problems and may retry.

Verification is a second API call rather than a guess. getWebhookInfo reports the registered URL, whether a custom certificate is in use, how many updates are pending, and the last delivery error with its timestamp. If users say the bot is silent, this endpoint is usually the fastest way to distinguish "no updates are arriving" from "updates are arriving and my code is failing". To return to polling, call deleteWebhook before starting your local loop.

Designing Reply Rules That Do Not Break at Scale

Automated replies are a matching problem before they are a coding problem. The practical structure is a small ordered rule set: exact commands first, then keyword patterns, then an explicit fallback. Ordering is not cosmetic — a broad substring rule placed above a precise one will swallow traffic meant for the precise rule, and the resulting bug looks like "the bot ignores my command" even though the matching logic is technically working.

Two design habits prevent most production incidents. The first is an explicit fallback message that tells the user what to do next, rather than silence; silence is indistinguishable from an outage. The second is a per-chat cooldown for repetitive triggers, stored in memory or a small key-value store, so that a user pasting the same question five times does not produce five identical answers. Where the bot handles anything consequential — order status, account changes, refunds — a confirmation step with inline buttons is safer than acting immediately on the first matching message, because it turns an ambiguous text match into an explicit user decision.

State is where simple bots quietly become complex. If the bot asks a follow-up question ("Which order number?"), it now needs to remember that it is waiting for an answer, for that specific chat, for a limited time. Keep that state small and expiring; a dictionary with a timestamp is enough for a prototype, and a database is justified only once you need the conversation history to survive a restart. Teams that skip this step end up with bots that appear amnesiac after every deployment.

Performance and Cost: What to Measure and Where the Thresholds Sit

Using performance and cost as the benchmark, three numbers matter: time from update arrival to reply sent, sustained reply throughput, and the monthly cost of the compute that produces them. The Bot API itself is free to use, so nearly all of your cost is hosting, plus any third-party services in the loop. That makes cost modelling unusually simple — the question is whether you need an always-on process or can get away with paying per invocation.

Measuring latency requires timestamps you control. Record the moment your code receives an update and the moment sendMessage returns, then keep a rolling median rather than an average — a few slow outliers distort averages badly, and users experience the median. Empirical observation across small deployments: an always-on process on modest hardware answers typical text updates in well under a second end to end, while a serverless webhook adds a cold-start penalty that is most visible on the first request after an idle period. Both are acceptable for support-style conversations; neither is suitable for anything resembling real-time bidding.

Throughput has documented ceilings. Telegram's Bot FAQ describes messaging rate guidance for bots, including an overall cap on outgoing messages per second and a much tighter limit for messages sent to the same group. Because these figures are policy rather than software constants and may be revised, treat any number you read — including this sentence — as something to re-check on the official Bot FAQ page before you size an architecture around it. The operational rule that survives policy changes is to queue and pace outbound messages rather than firing them in a burst, and to spread group announcements over time.

A concrete scenario makes the trade-offs tangible. Suppose a support desk wants the bot to answer routine questions in a group of a few thousand members, with roughly a couple of hundred inbound messages on a busy day and a handful of automated replies each minute during peak hours. That profile comfortably fits long polling on the smallest always-on instance, and a webhook on a serverless function would cost less while idling. Now change one variable: the bot must also post a daily digest to several large groups at a fixed time. That is a burst pattern, and it is exactly where pacing and retry logic matter more than raw compute. The hosting choice barely changes; the send strategy changes completely.

Exceptions and Side Effects You Will Eventually Meet

The 409 Conflict response is the most common exception in this workflow, and it almost always means two consumers are competing for the same update stream: a webhook is still registered while you poll, or two instances of your poller are running against one token. The fix is to make the consumer single and explicit — delete the webhook before local testing, and ensure only one replica polls. Verification is straightforward: call getWebhookInfo to check for a registered URL, and look for duplicate process launches in your host's logs.

Group privacy mode produces a different class of surprise. With the default setting, a bot in a group receives only commands and mentions, so a keyword-based auto-reply will appear to work in private chats and fail in groups. This is not a bug; it is the documented default. The reproducible check is to add the bot to a test group with privacy mode on, send a plain sentence, and observe that nothing arrives; then repeat with a mention and confirm the update appears. Decide deliberately whether you want the wider visibility before changing the setting.

Formatting and content limits are quieter failure sources. Messages have a maximum length documented in the Bot API, so long answers need splitting or a link to a page. Markdown or HTML parse modes will reject malformed content, and the safest habit is to escape user-supplied text before embedding it in a formatted message — otherwise a user can break your message or, worse, inject a mention. Rapid edits to the same message can also fail because nothing has actually changed, which is worth handling as a no-op rather than logging as an error.

Finally, the infinite-loop risk. A bot that replies to everything in a group, in a group that also contains another bot, can create a cycle of replies. Filtering out updates whose sender is a bot is a one-line guard that prevents an entire category of embarrassment. The same guard protects you when someone forwards a message your bot was mentioned in.

Security and Least Privilege in Practice

Every API call you make is authenticated solely by the token, which means the token's blast radius equals the bot's entire capability set. Store it in an environment variable or secret manager, scope it to the service that needs it, and rotate it with /revoke whenever a team member with access leaves or a secret is suspected of exposure. Rotation is intentionally cheap: a new token is issued immediately, and your job is to redeploy with the new value — a good reason to keep the token in one place rather than scattered across scripts.

On the webhook side, use the secret_token parameter and verify the corresponding header on every request before parsing the body. This turns your public endpoint from "trusting anything that looks like JSON" into "trusting only traffic that carried the shared secret". Combine that with allowed_updates to limit what you receive in the first place; there is no reason to accept update types your logic does not handle.

Least privilege also applies to visibility. Keep privacy mode on for group bots that only need commands. Restrict the automation to the specific chats it serves rather than any chat it is added to, and validate the chat id on incoming updates instead of assuming the context. If your bot processes personal data, be able to answer where that data is stored, for how long, and how it is deleted — the platform will not answer that for you.

Integrating with No-Code and Third-Party Platforms

If the reply logic is simple and the team lacks developers, a general automation platform or bot-builder service can sit between Telegram and your answers. The flow is always the same: paste the token into the platform, choose a trigger that corresponds to an incoming update, define the reply, and let the platform register the webhook. This is a legitimate path for internal FAQs, notification relays, and simple triage, and it removes deployment work entirely.

The trade-offs are worth stating plainly. Your token now lives in a third party, so you inherit their security posture; the reply logic is harder to version and review; and cost scales with platform pricing rather than with your own compute. Before committing, confirm three things: that you can export or rebuild the logic elsewhere, that you can revoke access without losing the bot, and that data residency matches your obligations. Because BotFather is the only layer that owns the bot's identity, you can always rotate the token and cut a platform off cleanly — that is your exit strategy, and it is worth keeping it available.

Integrating with No-Code and Third-Party Platforms
Integrating with No-Code and Third-Party Platforms

Troubleshooting: Symptom, Cause, Verification, Resolution

Symptom Likely cause Verification Resolution
Bot silent in private chatProgram not running, or token invalidCall getMe; check process logsFix credential, restart consumer
409 Conflict on getUpdatesWebhook still registered, or two pollers runningInspect getWebhookInfo; count running instancesCall deleteWebhook; keep one consumer
Duplicate replies after restartOffset not confirmedReplay logs around a restartPersist update_id + 1 before handling
Works in DM, fails in groupGroup privacy mode enabledSend a plain sentence vs a mention in a test groupDecide deliberately via /setprivacy
Webhook registered but no updatesEndpoint unreachable or certificate invalidCheck last error in getWebhookInfoFix DNS/TLS, or return to polling
Replies rejected or garbledUnescaped text with parse modeReproduce with the same input stringEscape user content or drop parse mode

Work through this table in order rather than jumping to code. In practice, credential and consumer-conflict problems account for the majority of "my bot does not reply" reports, and both are detectable in a couple of API calls without reading a line of application logic.

Verification and Rollback

Verification should be a repeatable script, not a manual ritual. A minimal checklist: getMe returns your bot's identity; getWebhookInfo shows either no webhook (polling mode) or the expected URL with no recent errors; a test message in a private chat produces exactly one reply; the same message sent twice does not produce two replies; and the reply arrives in the correct format without escape artefacts. Run this after every deployment, because the failure modes above are all silent until a user notices.

Rollback has four levels, cheapest first. Disable the reply logic in code while leaving the bot registered — users see silence but nothing breaks. Call deleteWebhook to stop push delivery. Use /revoke to invalidate the token, which immediately disables every consumer holding the old credential — the correct emergency action if a token may have leaked. And as a last resort, /deletebot removes the bot entirely, freeing the username but permanently destroying the identity and its chat history. Reach for /revoke far more often than /deletebot, and keep a short written runbook so the action does not depend on remembering which BotFather command does what under pressure.

Applicable and Non-Applicable Scenarios

A BotFather-registered bot with a small reply engine is a strong fit when the interactions are inbound, the answers are largely deterministic, the volume is modest, and users already live in Telegram. Typical matches: an internal FAQ bot for a team, a status and uptime checker for a service, an order-lookup helper behind a support desk, and a notification relay that answers "/status". In each case the value comes from immediacy and availability rather than from conversation quality.

It is a poor fit in several recognisable situations. If the bot must initiate conversations with users who have not contacted it, the platform model works against you. If replies require genuine judgement about ambiguous requests, a rule set will frustrate users faster than it helps them, and a human should stay in the loop. If the automation touches regulated personal data, the third-party tooling above adds review burden that may exceed the benefit. And if the workload is dominated by large broadcast bursts, the limiting factor is send pacing rather than bot logic — the architecture question changes, and choosing a bot framework will not answer it.

Best Practices Checklist

  • Verify the token with getMe before writing any reply logic.
  • Confirm every update with offset = update_id + 1 so restarts do not replay messages.
  • Run one consumer per token; never leave a webhook registered while polling.
  • Define a fallback reply that tells the user what to type next.
  • Order rules from most specific to most general, and cap keyword matching scope.
  • Add a per-chat cooldown for repeat triggers, and ignore updates from other bots.
  • Escape user-supplied text before using a parse mode.
  • Keep the token in a secret store, and rotate with /revoke after any exposure.
  • Use secret_token and allowed_updates on webhook deployments.
  • Decide group visibility explicitly with /setprivacy and /setjoingroups.
  • Publish a short command menu with /setcommands; treat it as the bot's UI.
  • Write the rollback runbook before launch, not during an incident.

Read as a whole, the list is less a set of features to enable than a sequence of habits: verify before you build, keep exactly one consumer, fail loudly to the user, and treat credentials as the highest-value asset in the system. None of the items depends on a particular library, and most of them take minutes to implement once — which is why they are worth doing on the first bot rather than retrofitting onto the fifth.

Closing Perspective and Next Steps

Creating a Telegram bot with BotFather is a five-minute task; making it answer reliably is a small systems problem with a few well-known failure modes. The durable lessons are the ones that do not depend on any library or version: keep the token secret and rotate it without hesitation, make exactly one consumer responsible for the update stream, always confirm the offset, and give users a fallback instead of silence. Those four habits eliminate the majority of incidents reported by teams running simple auto-reply bots.

A sensible next step is to build the smallest possible vertical slice today: run /newbot, verify with getMe, stand up the polling loop above with two replies and a fallback, and run the verification checklist from a second account. Once that works end to end, migrate to a webhook if your hosting benefits from it, and only then expand the rule set. If you later need patterns beyond simple replies — inline mode, menus, payments, or business-account workflows — those are separate subsystems with their own documentation, and BotFather's configuration commands are the entry point rather than the whole story.

Two things about this stack are worth expecting as you maintain a bot over time. First, the Bot API and BotFather's command set are maintained by Telegram and may gain new methods, settings, or update types between client releases; the practical consequence is that any checklist — including this one — describes a moment rather than a permanent contract, so re-check the official Bot API documentation and Bot FAQ when a behaviour changes unexpectedly. Second, hosting platforms evolve faster than the protocol does: serverless cold starts, free-tier limits, and pricing models shift, and a migration between polling and webhook may become worthwhile for cost reasons even when nothing about your logic has changed. Neither trend invalidates the architecture described here, because the identity layer and the message layer have remained distinct; it simply means the operational details are worth revisiting whenever something behaves differently than it did on the day you built it.

Frequently Asked Questions

Does BotFather include built-in automated replies?

No. BotFather registers the bot and manages its identity, description, command menu, group privacy, and API token. Reply logic must be implemented separately, either in code that calls the Bot API or through an automation platform you connect with the token.

Should I use long polling or a webhook for a small auto-reply bot?

Start with long polling while prototyping, since it needs no public HTTPS endpoint. Move to a webhook when the reply rules are stable, especially if your host bills per invocation rather than per hour of uptime. Only one mode may be active per token at a time.

Why does my bot answer in private chats but stay silent in groups?

Group privacy mode is enabled by default, so the bot only receives commands and mentions in groups. To confirm this, send a plain sentence in a test group and observe that no update arrives, then repeat with a mention. Change the setting with /setprivacy only if broader visibility is genuinely required.

What causes a 409 Conflict error when fetching updates?

It usually means two consumers are reading the same update stream: a webhook is still registered while you poll, or two instances of your poller share one token. Check getWebhookInfo, call deleteWebhook before local testing, and keep exactly one running consumer.

How do I stop a leaked bot token from being misused?

Send /revoke to BotFather, which invalidates the old token immediately and issues a new one. Then redeploy your service with the new value stored in your secret manager. Reserve /deletebot for cases where the bot itself should cease to exist.

Are there rate limits I should design around?

Yes. Telegram's Bot FAQ documents messaging rate guidance, including an overall outgoing cap and a tighter per-group limit. Because these are policy values that may be revised, check the official Bot FAQ before sizing an architecture, and always queue and pace outbound messages rather than sending bursts.