feat: Telegram Bot Integration
- TelegramService: Non-Streaming Claude Chat mit Tool-Loop, Commands (/start, /link, /session, /new, /clear, /status, /unlink), Nachrichten-Splitting bei >4096 Zeichen, Typing-Indicator, History-Aufbau aus DB, Token-Usage-Tracking - TelegramEndpoint: Webhook (POST, no-auth), Link-Code-Generierung (POST, auth), Webhook-Registrierung + Info (Admin) - DatabaseService: telegram_links Tabelle mit Link-Code-Flow (6-stelliger Code, 5 Min Ablauf), GetUserSessions - AuthMiddleware: /api/telegram/webhook von Auth ausgenommen - Session-Verknüpfung via Link-Code (Web-UI generiert Code, Telegram /link CODE löst ein) - TelegramLinkRecord Model
This commit is contained in:
1 parent
81714b1f4c
commit
0dd7c38751
7 files changed
+1108
-5
No files matched your search
+4
-1
@@ -6,5 +6,8 @@
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"MaxIterations": 100
|
||||
"AnthropicToken": "",
|
||||
"MaxIterations": 100,
|
||||
"TelegramBotToken": "",
|
||||
"TelegramWebhookSecret": ""
|
||||
}
|
||||
Reference in new issue
Block a user