Rename utils to message_parser

This commit is contained in:
Dan 2018-04-06 14:47:00 +02:00
parent 055d1c80ea
commit 73246c26f9
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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: