mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 05:04:51 +00:00
Reorganize imports
This commit is contained in:
parent
eeaf01654b
commit
d06e486c8b
1 changed files with 3 additions and 3 deletions
|
|
@ -25,9 +25,9 @@ from io import BytesIO
|
|||
|
||||
import pyrogram
|
||||
from pyrogram import __copyright__, __license__, __version__
|
||||
from pyrogram.api import functions, types, core
|
||||
from pyrogram.api import functions, types
|
||||
from pyrogram.api.all import layer
|
||||
from pyrogram.api.core import Object, MsgContainer, Long, FutureSalt, Int
|
||||
from pyrogram.api.core import Object, MsgContainer, Int, Long, FutureSalt, FutureSalts
|
||||
from pyrogram.api.errors import Error, InternalServerError
|
||||
from pyrogram.connection import Connection
|
||||
from pyrogram.crypto import MTProto
|
||||
|
|
@ -251,7 +251,7 @@ class Session:
|
|||
|
||||
if isinstance(msg.body, (types.BadMsgNotification, types.BadServerSalt)):
|
||||
msg_id = msg.body.bad_msg_id
|
||||
elif isinstance(msg.body, (core.FutureSalts, types.RpcResult)):
|
||||
elif isinstance(msg.body, (FutureSalts, types.RpcResult)):
|
||||
msg_id = msg.body.req_msg_id
|
||||
elif isinstance(msg.body, types.Pong):
|
||||
msg_id = msg.body.msg_id
|
||||
|
|
|
|||
Loading…
Reference in a new issue