From 4f647847e70b31b7020b7c7c475834d7bc6b5479 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 27 Feb 2019 10:39:56 +0100 Subject: [PATCH] Fix RequestIter not setting TotalList.total in collect() --- telethon/requestiter.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telethon/requestiter.py b/telethon/requestiter.py index af632389..ca9c8d72 100644 --- a/telethon/requestiter.py +++ b/telethon/requestiter.py @@ -106,6 +106,7 @@ class RequestIter(abc.ABC): async for message in self: result.append(message) + result.total = self.total return result @abc.abstractmethod