Skip to main content

ProxyManager

Each bot runs an independent pollLoop goroutine. Dual-mode per bot:
  • Proxy mode: forwards raw updates to backend URL
  • Management mode: processes updates for chat/message tracking
Both can be active simultaneously.

UpdateQueue

In-memory ring buffer (1000 updates per bot) with waiter notification pattern. Multiple consumers can poll simultaneously.

Bot Resolution

API endpoints resolve bots through a fallback chain:
  1. Check registered bots map
  2. Check ProxyManager’s managed bots