Skip to content

Hardening Your Telegram Allowlist

I know the frustration of a bot ignoring messages because of a tiny formatting error. You copy an ID from a log, paste it into your configuration, and it fails because of a hidden space or a capital letter in the prefix. These small mismatches between how you store IDs and how the provider sends them can be difficult to track down.

I want to show you how the latest update fixes this by hardening the allowlist check. The system now normalizes these entries automatically, making your setup more reliable.

  • Telegram Provider configuration
  • Access to your allowlist settings

You can now use telegram: and tg: prefixes interchangeably. The system treats them as case-insensitive, so you don’t have to worry about matching the exact casing from your logs.

Here are the formats I recommend using in your allowlist:

telegram:123456
TG:123456
tg:123456
tg:123456

The system will trim the whitespace and treat all of these as the same ID. This ensures that when the provider checks an inbound message, it correctly identifies the sender even if your configuration isn’t perfectly formatted.

If you run into issues with your allowlist, check these common scenarios covered by the update:

  • Accidental Whitespace: If you accidentally leave a space at the beginning or end of an entry, the system now trims it automatically.
  • Empty Entries: If your configuration file has empty lines or blank entries, the system ignores them instead of causing a mismatch.
  • Case Sensitivity: If you used TG: instead of tg:, the check will still pass because prefixes are now case-insensitive.
  • Prefix Variations: You can use either telegram: or tg: as they are now treated as the same prefix.

If you have questions about your specific configuration, ask the AI Setup Assistant.

OpenClaw

OpenClaw Expert

Still stuck?

If this page didn't answer your case, ask OpenClaw Expert for step-by-step guidance.