fix: chat auth

This commit is contained in:
Acbox
2026-01-13 22:21:28 +08:00
parent 6ca722bc64
commit dad44a4c36
+2 -1
View File
@@ -167,7 +167,7 @@ export class TelegramPlatform extends BasePlatform {
try {
// Send typing indicator
await ctx.sendChatAction('typing')
await getTokenStorage(ctx)
const storage = await getTokenStorage(ctx)
let responseText = ''
let lastUpdateTime = Date.now()
@@ -240,6 +240,7 @@ export class TelegramPlatform extends BasePlatform {
}
}
},
{ storage }
)
} catch (error) {
const errorMessage = error instanceof Error ? error.message : 'Unknown error'