From 15b08bdf23a72b85fb3ee4fcc6bcd41e6559111a Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 10 Apr 2023 15:31:11 +0300 Subject: [PATCH] fix list message length --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 512a69b..74ea58f 100644 --- a/main.py +++ b/main.py @@ -144,7 +144,7 @@ async def list_tags(msg: Message): lines = [] for tag in tags: entry = f'- {tag} [/del_{tag}]' - if len('\n'.join(lines + [entry])) > 4096: + if len('\n'.join(lines + [entry])) > 2000: lines = "\n".join(lines) await msg.reply(f'Monitored tags:\n\n{lines}') lines = [entry]