mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix RequestIter not setting TotalList.total in collect()
This commit is contained in:
parent
968da5f72d
commit
4f647847e7
|
@ -106,6 +106,7 @@ class RequestIter(abc.ABC):
|
||||||
async for message in self:
|
async for message in self:
|
||||||
result.append(message)
|
result.append(message)
|
||||||
|
|
||||||
|
result.total = self.total
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@abc.abstractmethod
|
@abc.abstractmethod
|
||||||
|
|
Loading…
Reference in New Issue
Block a user