* React to the incoming message to show the bot has started processing it.
(
chatId: number,
messageId: number,
)
| 217 | * React to the incoming message to show the bot has started processing it. |
| 218 | */ |
| 219 | private async tryAckReaction( |
| 220 | chatId: number, |
| 221 | messageId: number, |
| 222 | ): Promise<void> { |
| 223 | try { |
| 224 | await this.bot?.setMessageReaction(chatId, messageId, { |
| 225 | reaction: [ACK_REACTION], |
| 226 | is_big: false, |
| 227 | }); |
| 228 | } catch (err) { |
| 229 | console.error("[Telegram] Failed to add ack reaction:", err); |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * Split text into chunks respecting Telegram's message length limit. |
no outgoing calls
no test coverage detected