fix: Fix ValueError: Invalid peer type (Issue #2)

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
Animesh Murmu 2023-05-17 14:08:30 +05:30 committed by wulan17
parent b27d18c640
commit 955db61bc3
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -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