fix(telegram): route direct sends through gateway
This commit is contained in:
@@ -350,9 +350,9 @@ async def _send_rollback_proposal_alert(
|
||||
)
|
||||
|
||||
target_chat_id = _settings.SRE_GROUP_CHAT_ID or _settings.OPENCLAW_TG_CHAT_ID
|
||||
await gateway._http_client.post(
|
||||
f"https://api.telegram.org/bot{_settings.OPENCLAW_TG_BOT_TOKEN}/sendMessage",
|
||||
json={
|
||||
await gateway._send_request(
|
||||
"sendMessage",
|
||||
{
|
||||
"chat_id": target_chat_id,
|
||||
"text": text,
|
||||
"parse_mode": "HTML",
|
||||
|
||||
Reference in New Issue
Block a user