* Safe send that catches and logs errors.
(chatId: number, text: string)
| 305 | } |
| 306 | |
| 307 | /** |
| 308 | * Safe send that catches and logs errors. |
| 309 | */ |
| 310 | private async sendSafe(chatId: number, text: string): Promise<void> { |
| 311 | try { |
| 312 | await this.sendWithRetry(chatId, text); |
| 313 | } catch (err) { |
| 314 | console.error("[Telegram] Failed to send message:", err); |
| 315 | } |
| 316 | } |
no test coverage detected