2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 14:25:55 +00:00

Accept None as plugins_dir

This commit is contained in:
Dan
2018-10-13 19:33:43 +02:00
parent 29c3142958
commit f4146a8779

View File

@@ -169,7 +169,7 @@ class Client(Methods, BaseClient):
workers: int = BaseClient.WORKERS, workers: int = BaseClient.WORKERS,
workdir: str = BaseClient.WORKDIR, workdir: str = BaseClient.WORKDIR,
config_file: str = BaseClient.CONFIG_FILE, config_file: str = BaseClient.CONFIG_FILE,
plugins_dir: str = BaseClient.PLUGINS_DIR): plugins_dir: str or None = BaseClient.PLUGINS_DIR):
super().__init__() super().__init__()
self.session_name = session_name self.session_name = session_name