fix list message length
This commit is contained in:
parent
51e0e3d016
commit
15b08bdf23
2
main.py
2
main.py
@ -144,7 +144,7 @@ async def list_tags(msg: Message):
|
|||||||
lines = []
|
lines = []
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
entry = f'- {tag} [/del_{tag}]'
|
entry = f'- {tag} [/del_{tag}]'
|
||||||
if len('\n'.join(lines + [entry])) > 4096:
|
if len('\n'.join(lines + [entry])) > 2000:
|
||||||
lines = "\n".join(lines)
|
lines = "\n".join(lines)
|
||||||
await msg.reply(f'Monitored tags:\n\n{lines}')
|
await msg.reply(f'Monitored tags:\n\n{lines}')
|
||||||
lines = [entry]
|
lines = [entry]
|
||||||
|
Loading…
Reference in New Issue
Block a user