diff --git a/pyrogram/client/dispatcher/__init__.py b/pyrogram/client/dispatcher/__init__.py deleted file mode 100644 index e2e67b70..00000000 --- a/pyrogram/client/dispatcher/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# Pyrogram - Telegram MTProto API Client Library for Python -# Copyright (C) 2017-2019 Dan Tès -# -# This file is part of Pyrogram. -# -# Pyrogram is free software: you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published -# by the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# Pyrogram is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with Pyrogram. If not, see . - -from .dispatcher import Dispatcher diff --git a/pyrogram/client/ext/__init__.py b/pyrogram/client/ext/__init__.py index ce80958a..18c28ac3 100644 --- a/pyrogram/client/ext/__init__.py +++ b/pyrogram/client/ext/__init__.py @@ -18,6 +18,7 @@ from .base_client import BaseClient from .chat_action import ChatAction +from .dispatcher import Dispatcher from .emoji import Emoji from .parse_mode import ParseMode from .syncer import Syncer diff --git a/pyrogram/client/dispatcher/dispatcher.py b/pyrogram/client/ext/dispatcher.py similarity index 99% rename from pyrogram/client/dispatcher/dispatcher.py rename to pyrogram/client/ext/dispatcher.py index 43f80ebb..7552b034 100644 --- a/pyrogram/client/dispatcher/dispatcher.py +++ b/pyrogram/client/ext/dispatcher.py @@ -24,7 +24,6 @@ from threading import Thread import pyrogram from pyrogram.api import types -from ..ext import utils from ..handlers import ( CallbackQueryHandler, MessageHandler, DeletedMessagesHandler, UserStatusHandler, RawUpdateHandler, InlineQueryHandler