From 39e83a71b29b2b6f147926f417387353c7a458a7 Mon Sep 17 00:00:00 2001 From: "andrew (from workstation)" Date: Mon, 4 Nov 2019 15:38:37 +0100 Subject: [PATCH] ops --- tasks/channel_history.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/channel_history.py b/tasks/channel_history.py index dfab212..9d580fc 100644 --- a/tasks/channel_history.py +++ b/tasks/channel_history.py @@ -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