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
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()

View File

@ -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