diff --git a/pyrogram/storage/sqlite/cursor.py b/pyrogram/storage/sqlite/cursor.py index dcd87adc..c9f2be34 100644 --- a/pyrogram/storage/sqlite/cursor.py +++ b/pyrogram/storage/sqlite/cursor.py @@ -4,6 +4,7 @@ from threading import Thread class AsyncCursor(Thread): def __init__(self, cursor: Cursor): + super().__init__() self.cursor = cursor async def fetchone(self): diff --git a/pyrogram/storage/sqlite/sqlite.py b/pyrogram/storage/sqlite/sqlite.py index e962732c..5943f2c4 100644 --- a/pyrogram/storage/sqlite/sqlite.py +++ b/pyrogram/storage/sqlite/sqlite.py @@ -7,6 +7,7 @@ from typing import Union class AsyncSqlite(Thread): def __init__(self, database: Union[str, Path], *args, **kwargs): + super().__init__() self.connection = sqlite3.connect(database, *args, **kwargs) async def commit(self):