From 955db61bc3f5449770ea5f877194ac0232a07723 Mon Sep 17 00:00:00 2001 From: Animesh Murmu Date: Wed, 17 May 2023 14:08:30 +0530 Subject: [PATCH] fix: Fix ValueError: Invalid peer type (Issue #2) Signed-off-by: wulan17 --- pyrogram/storage/mongo_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/storage/mongo_storage.py b/pyrogram/storage/mongo_storage.py index bf1b48b9..9b27df89 100644 --- a/pyrogram/storage/mongo_storage.py +++ b/pyrogram/storage/mongo_storage.py @@ -126,7 +126,7 @@ class MongoStorage(Storage): if r is None: raise KeyError(f"Phone number not found: {phone_number}") - return get_input_peer(*r) + return get_input_peer(r['_id'], r['access_hash'], r['type']) async def _get(self): attr = inspect.stack()[2].function