mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user