2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

implement a unified aiohttp client

This commit is contained in:
Nick80835
2020-05-09 13:15:08 -04:00
parent 2bec577199
commit be99660463
11 changed files with 36 additions and 73 deletions

View File

@@ -5,6 +5,7 @@ from importlib import import_module, reload
from os.path import basename, dirname, isfile
from re import escape
from aiohttp import ClientSession
from telethon import events
from telethon.tl.types import DocumentAttributeFilename
@@ -20,6 +21,7 @@ class Loader():
self.settings = settings
self.command_handler = CommandHandler(client, logger, settings)
self.help_dict = {}
self.aioclient = ClientSession()
self.botversion = "0.1.3"
def load_all_modules(self):