Skip to content

Commit

Permalink
Takeout condition optimization (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
deus-developer authored Nov 24, 2024
1 parent d4d5a2d commit 37ed1f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/methods/utilities/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def main():
if not is_authorized:
await self.authorize()

if not await self.storage.is_bot() and self.takeout:
if self.takeout and not await self.storage.is_bot():
self.takeout_id = (await self.invoke(raw.functions.account.InitTakeoutSession())).id
log.info("Takeout session %s initiated", self.takeout_id)

Expand Down

0 comments on commit 37ed1f2

Please sign in to comment.