* Send a message, splitting into chunks if too long.
(chatId: number, text: string)
| 206 | * Send a message, splitting into chunks if too long. |
| 207 | */ |
| 208 | private async sendLongMessage(chatId: number, text: string): Promise<void> { |
| 209 | const chunks = this.splitMessage(text); |
| 210 | |
| 211 | for (const chunk of chunks) { |
| 212 | await this.sendWithRetry(chatId, chunk); |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | /** |
| 217 | * React to the incoming message to show the bot has started processing it. |
no test coverage detected