Fix Tunnel.message_forwarder's handling of >2000 strings (#5844)

This commit is contained in:
Jakub Kuczys
2022-09-13 01:34:34 +02:00
committed by GitHub
parent cadcffbae5
commit 9d820234bb

View File

@@ -128,10 +128,7 @@ class Tunnel(metaclass=TunnelMeta):
if content:
for page in pagify(content):
rets.append(await destination.send(page, files=files, embed=embed))
if files:
del files
if embed:
del embed
files = embed = None
elif embed or files:
rets.append(await destination.send(files=files, embed=embed))
return rets