openclaw - 💡(How to fix) Fix Telegram incoming messages not received after gateway restart [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#57935Fetched 2026-04-08 01:55:58
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Participants
RAW_BUFFERClick to expand / collapse

Bug Description:

  • Bot can send messages (outgoing works)
  • Bot cannot receive messages (incoming broken)
  • Telegram API getUpdates call returns empty array
  • Issue started after gateway restart at 3:58 PM ET on March 30, 2026
  • Multiple gateway restarts do not fix the issue

Environment:

  • OpenClaw version: 2026.3.28
  • Bot: @SephyAIBot (8720805523:AAFSoIt9wHuuCG8wEgMNY5fBeisI3wQXJzU)
  • Config: dmPolicy=pairing, user chat_id in allowFrom (7656801261)
  • Platform: macOS

Steps to reproduce:

  1. Restart gateway
  2. Send message to bot on Telegram
  3. Bot does not receive the message

Expected behavior: Bot should receive and respond to messages after gateway restart.

Actual behavior: Messages are not received. getUpdates returns empty. Sending still works.

extent analysis

Fix Plan

The fix involves updating the Telegram API configuration to properly handle webhook updates after a gateway restart.

Steps to Fix

  • Check the Telegram API webhook configuration to ensure it is set up correctly:
    • Set the getUpdates method to use the correct webhook URL.
    • Verify that the webhook is enabled and configured to receive updates.
  • Update the dmPolicy configuration to ensure it allows incoming messages:
    • Set dmPolicy to allow or pairing with the correct allowFrom configuration.
  • Implement a retry mechanism for the getUpdates call to handle temporary connection issues:

import requests import time

def get_updates_with_retry(): retry_count = 0 while retry_count < 5: try: response = requests.get('https://api.telegram.org/bot<token>/getUpdates') if response.status_code == 200: return response.json() except requests.exceptions.RequestException as e: print(f"Error: {e}") retry_count += 1 time.sleep(1) return None

* Restart the gateway and test the bot to ensure it can receive messages.

### Verification
* Send a message to the bot on Telegram and verify that it receives and responds to the message.
* Check the `getUpdates` response to ensure it returns a non-empty array of updates.

### Extra Tips
* Regularly check the Telegram API documentation for updates and changes to the webhook configuration.
* Consider implementing a more robust retry mechanism and error handling for the `getUpdates` call.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Telegram incoming messages not received after gateway restart [1 participants]