randydev commited on
Commit
e806ce5
·
verified ·
1 Parent(s): 15144de

Update generator.py

Browse files
Files changed (1) hide show
  1. generator.py +2 -0
generator.py CHANGED
@@ -1,6 +1,7 @@
1
  import logging
2
  from pyromod import listen
3
  from pyrogram import Client, idle
 
4
  from pyrogram.errors import ApiIdInvalid, ApiIdPublishedFlood, AccessTokenInvalid
5
  from config import *
6
 
@@ -26,6 +27,7 @@ if __name__ == "__main__":
26
  raise Exception("Your BOT_TOKEN is not valid.")
27
  uname = app.get_me().username
28
  print(f"@{uname} Started Successfully!")
 
29
  idle()
30
  app.stop()
31
  print("Bot stopped!")
 
1
  import logging
2
  from pyromod import listen
3
  from pyrogram import Client, idle
4
+ from pyrogram import __version__ as pyro
5
  from pyrogram.errors import ApiIdInvalid, ApiIdPublishedFlood, AccessTokenInvalid
6
  from config import *
7
 
 
27
  raise Exception("Your BOT_TOKEN is not valid.")
28
  uname = app.get_me().username
29
  print(f"@{uname} Started Successfully!")
30
+ print(f"Pyrogram Version: {pyro}")
31
  idle()
32
  app.stop()
33
  print("Bot stopped!")