Skip to content

Commit

Permalink
Remove the reinstallation of pyrogram of the old version (#7)
Browse files Browse the repository at this point in the history
* Remove the pyrogram version check and reinstall v2.0.106.21

* Change pyrogram repository
  • Loading branch information
Denis Oleynik authored Sep 8, 2024
1 parent c536c04 commit 4091e87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
https://github.com/AmoreForever/Shizu-Pyro/archive/dev.zip
https://github.com/KurimuzonAkuma/pyrogram/archive/refs/heads/dev.zip
telethon
aiogram==2.25.1
aiohttp_jinja2==1.5
Expand Down
14 changes: 0 additions & 14 deletions shizu/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,6 @@
async def main():
"""Main function"""

if pyrogram.__version__ != "2.0.106.21":
logging.info("Installing shizu-pyrogram...")

subprocess.run(
"pip install https://github.com/AmoreForever/Shizu-Pyro/archive/dev.zip --force-reinstall",
shell=True,
check=True,
)

logging.info("Successfully installed shizu-pyrogram!")
logging.info("Restarting...")

return utils.restart()

me, app, tapp = await auth.Auth().authorize()

await app.initialize()
Expand Down

0 comments on commit 4091e87

Please sign in to comment.