From 29b924e5f713eeb84034e0e0934a3bc3825a74f6 Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Wed, 15 Apr 2026 10:18:32 -0700 Subject: [PATCH] bump TG edit to prevent edit spam for messages since edits count as a send event and too many will result in a 429 resolves #5447 --- server/utils/telegramBot/constants.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/utils/telegramBot/constants.js b/server/utils/telegramBot/constants.js index e744c009..7dc56f78 100644 --- a/server/utils/telegramBot/constants.js +++ b/server/utils/telegramBot/constants.js @@ -1,7 +1,8 @@ /** * Minimum interval between Telegram message edits (ms) to avoid rate limiting + * https://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-this */ -const STREAM_EDIT_INTERVAL = 600; +const STREAM_EDIT_INTERVAL = 1_200; /** * Telegram messages cap at 4096 chars. We use 4000 to leave headroom