mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-06-18 03:30:53 +00:00
f3f4c67b36
Multi-agent AI gateway with WebSocket RPC, HTTP API, and messaging channel integrations. Go port of OpenClaw with multi-tenant PostgreSQL, per-user isolation, security hardening, and production observability. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
460 B
Go
16 lines
460 B
Go
package telegram
|
|
|
|
import "time"
|
|
|
|
const (
|
|
// telegramMaxMessageLen is the safe limit for Telegram messages.
|
|
// Telegram's hard limit is 4096, but we use 4000 for safety (matching TS textChunkLimit).
|
|
telegramMaxMessageLen = 4000
|
|
|
|
// telegramCaptionMaxLen is the max length for media captions.
|
|
telegramCaptionMaxLen = 1024
|
|
|
|
// pairingReplyDebounce is the minimum interval between pairing replies to the same user.
|
|
pairingReplyDebounce = 60 * time.Second
|
|
)
|