mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Allow non-interactive migration from storage v2 to v3 (#979)
This commit is contained in:
parent
bbe90fc6d3
commit
795ffc027a
@ -592,6 +592,9 @@ class Client(Methods):
|
||||
else:
|
||||
# Needed for migration from storage v2 to v3
|
||||
if not await self.storage.api_id():
|
||||
if self.api_id:
|
||||
await self.storage.api_id(self.api_id)
|
||||
else:
|
||||
while True:
|
||||
try:
|
||||
value = int(await ainput("Enter the api_id part of the API key: "))
|
||||
|
Loading…
x
Reference in New Issue
Block a user