diff --git a/pyrogram/client/__init__.py b/pyrogram/client/__init__.py index 49214797..1faa8dc6 100644 --- a/pyrogram/client/__init__.py +++ b/pyrogram/client/__init__.py @@ -20,4 +20,4 @@ from .chat_action import ChatAction from .client import Client from .parse_mode import ParseMode from .emoji import Emoji -from . import utils +from . import message_parser diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index c14ab380..c85ff8d7 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -46,7 +46,7 @@ from pyrogram.api.errors import ( PasswordHashInvalid, FloodWait, PeerIdInvalid, FilePartMissing, ChatAdminRequired, FirstnameInvalid, PhoneNumberBanned, VolumeLocNotFound, UserMigrate) -from pyrogram.client import utils +from pyrogram.client import message_parser from pyrogram.crypto import AES from pyrogram.session import Auth, Session from pyrogram.session.internals import MsgId @@ -732,9 +732,9 @@ class Client: message = update.message if isinstance(message, types.Message): - m = utils.parse_message(self, message, users, chats) + m = message_parser.parse_message(self, message, users, chats) elif isinstance(message, types.MessageService): - m = utils.parse_message_service(self, message, users, chats) + m = message_parser.parse_message_service(self, message, users, chats) else: continue else: diff --git a/pyrogram/client/utils.py b/pyrogram/client/message_parser.py similarity index 100% rename from pyrogram/client/utils.py rename to pyrogram/client/message_parser.py