This commit is contained in:
andrew (from workstation) 2019-11-04 15:38:37 +01:00
parent 46f540697d
commit 39e83a71b2

View File

@ -94,10 +94,10 @@ class ChannelHistoryReadTask(AsyncTask):
message = {"update_id": 1, "message": message}
data = json.dumps(message, default=JsonSerializer.default, ensure_ascii=True)
response = await self.http.post(self.webhook, data=bytes(data, "utf8"))
result = await self.http.post(self.webhook, data=bytes(data, "utf8"))
await response.read()
response.close()
await result.read()
result.close()
if not response.final:
return 1