Link Search Menu Expand Document

Constructor: encryptedChat

Back to constructors index

Encrypted chat

Attributes:

NameTypeRequiredDescription
idintYesChat ID
access_hashlongYesCheck sum dependent on the user ID
dateintYesDate chat was created
admin_idlongYesChat creator ID
participant_idlongYesID of the second chat participant
g_a_or_bbytesYesB = g ^ b mod p, if the currently authorized user is the chat’s creator,
or A = g ^ a mod p otherwise
See Wikipedia for more info
key_fingerprintlongYes64-bit fingerprint of received key

Type: EncryptedChat

Example:

$encryptedChat = ['_' => 'encryptedChat', 'id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => long, 'participant_id' => long, 'g_a_or_b' => 'bytes', 'key_fingerprint' => long];