Skip to content

Commit df5de45

Browse files
committed
Update Pyrogram to v2.0.70
Update to Pyrogram v2.0.70 from the latest commit on the official repo https://github.com/pyrogram/pyrogram
1 parent f69ee9a commit df5de45

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyrogram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# You should have received a copy of the GNU Lesser General Public License
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

19-
__version__ = "2.0.69"
19+
__version__ = "2.0.70"
2020
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
2121
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
2222

pyrogram/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,10 @@ async def fetch_peers(self, peers: List[Union[raw.types.User, raw.types.Chat, ra
485485

486486
async def handle_updates(self, updates):
487487
if isinstance(updates, (raw.types.Updates, raw.types.UpdatesCombined)):
488-
is_min = (await self.fetch_peers(updates.users)) or (await self.fetch_peers(updates.chats))
488+
is_min = any((
489+
await self.fetch_peers(updates.users),
490+
await self.fetch_peers(updates.chats),
491+
))
489492

490493
users = {u.id: u for u in updates.users}
491494
chats = {c.id: c for c in updates.chats}

0 commit comments

Comments
 (0)