feat(im): add Telegram platform integration

Add Telegram Bot API adapter supporting both webhook and long-polling
modes with streaming replies via editMessageText, file download via
getFile API, and timing-safe secret token verification.
This commit is contained in:
nullkey
2026-03-24 16:48:13 +08:00
committed by lyingbug
parent f0c6d0752a
commit aea0a97be3
12 changed files with 625 additions and 12 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ export interface IMChannel {
id: string;
tenant_id?: number;
agent_id: string;
platform: 'wecom' | 'feishu' | 'slack';
platform: 'wecom' | 'feishu' | 'slack' | 'telegram';
name: string;
enabled: boolean;
mode: 'webhook' | 'websocket';