mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-06 17:25:40 +00:00
Move INITIAL_SALT to Session
This commit is contained in:
@@ -25,8 +25,6 @@ from . import AES, KDF
|
||||
|
||||
|
||||
class MTProto:
|
||||
INITIAL_SALT = 0x616e67656c696361
|
||||
|
||||
@staticmethod
|
||||
def pack(message: Message, salt: int, session_id: bytes, auth_key: bytes, auth_key_id: bytes) -> bytes:
|
||||
data = Long(salt) + session_id + message.write()
|
||||
|
Reference in New Issue
Block a user