AuthKey¶
class AuthKeyType¶
class AuthKeyType(IntEnum)
Type of AuthKey
Attributes:
Name | Type | Description |
---|---|---|
Generated | IntEnum | Generated key |
Temporary | IntEnum | Temporary key |
ReadFromFile | IntEnum | Key red from file |
Local | IntEnum | Local key |
class AuthKey¶
class AuthKey(BaseObject)
Authorization key used for MTProto
It's also used to encrypt and decrypt local tdata
Attributes:
Name | Type | Description |
---|---|---|
DcId | DcId | Data Center ID (from 1 to 5). |
type | AuthKeyType | Type of the key. |
key | bytes | The actual key, 256 bytes in length. |