Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion assistant/src/messaging/providers/telegram-bot/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ export const telegramBotMessagingProvider: MessagingProvider = {
* credential:telegram:access_token, but the Telegram bot token is
* stored as credential:telegram:bot_token. This method lets the
* registry detect that Telegram credentials exist.
*
* Both bot_token and webhook_secret are required — the gateway's
* /deliver/telegram endpoint rejects requests without the webhook
* secret, so partial credentials would cause every send to fail.
*/
isConnected(): boolean {
return getBotToken() !== undefined;
return getBotToken() !== undefined && !!getSecureKey('credential:telegram:webhook_secret');
},

async testConnection(_token: string): Promise<ConnectionInfo> {
Expand Down
Loading