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