Added convopyro support
This commit is contained in:
parent
7c105aebf2
commit
c531e242c0
6
main.py
6
main.py
@ -1,6 +1,10 @@
|
||||
import logging
|
||||
from os import getpid
|
||||
|
||||
# Uncomment this and the line below client declaration
|
||||
# in order to use context manager in your commands.
|
||||
# from convopyro import Conversation
|
||||
|
||||
from modules.app import PyroClient
|
||||
|
||||
logging.basicConfig(
|
||||
@ -21,13 +25,13 @@ except ImportError:
|
||||
|
||||
def main():
|
||||
client = PyroClient()
|
||||
# Conversation(client)
|
||||
|
||||
try:
|
||||
client.run()
|
||||
except KeyboardInterrupt:
|
||||
logger.warning(f"Forcefully shutting down with PID {getpid()}...")
|
||||
finally:
|
||||
client.__exit__()
|
||||
exit()
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
aiofiles~=23.1.0
|
||||
apscheduler~=3.10.1
|
||||
black~=23.3.0
|
||||
convopyro==0.5
|
||||
pyrogram~=2.0.102
|
||||
tgcrypto==1.2.5
|
||||
ujson==5.7.0
|
||||
|
Reference in New Issue
Block a user