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