Skip to content

Commit a159f63

Browse files
committed
update
1 parent 63e406f commit a159f63

2 files changed

Lines changed: 182 additions & 274 deletions

File tree

src/telegram_api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,12 @@ export default class TelegramApi {
160160
}
161161

162162
if (errorDescription.includes('BUSINESS_CONNECTION_INVALID') || errorDescription.includes('BUSINESS_PEER_INVALID')) {
163+
console.warn(`Telegram API business error: ${errorDescription}`);
163164
throw new Error('BUSINESS_CONNECTION_INVALID');
164165
}
165166

166167
if (errorDescription.includes('PEER_ID_INVALID')) {
168+
console.warn(`Telegram API peer error: ${errorDescription}`);
167169
throw new Error('PEER_ID_INVALID');
168170
}
169171

0 commit comments

Comments
 (0)