Added convopyro support

This commit is contained in:
Profitroll 2023-05-14 22:09:04 +02:00
parent 7c105aebf2
commit c531e242c0
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,10 @@
import logging import logging
from os import getpid 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 from modules.app import PyroClient
logging.basicConfig( logging.basicConfig(
@ -21,13 +25,13 @@ except ImportError:
def main(): def main():
client = PyroClient() client = PyroClient()
# Conversation(client)
try: try:
client.run() client.run()
except KeyboardInterrupt: except KeyboardInterrupt:
logger.warning(f"Forcefully shutting down with PID {getpid()}...") logger.warning(f"Forcefully shutting down with PID {getpid()}...")
finally: finally:
client.__exit__()
exit() exit()

View File

@ -1,6 +1,7 @@
aiofiles~=23.1.0 aiofiles~=23.1.0
apscheduler~=3.10.1 apscheduler~=3.10.1
black~=23.3.0 black~=23.3.0
convopyro==0.5
pyrogram~=2.0.102 pyrogram~=2.0.102
tgcrypto==1.2.5 tgcrypto==1.2.5
ujson==5.7.0 ujson==5.7.0