MadelineProtoDocs/docs/MTProto_docs/constructors/server_DH_inner_data.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.5 KiB

title description image
server_DH_inner_data Server inner data https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: server_DH_inner_data

Back to constructors index

Server inner data

Attributes:

Name Type Required Description
nonce int128 Yes Random number for cryptographic security
server_nonce int128 Yes Random number for cryptographic security, given by server
g int Yes G
dh_prime bytes Yes Dh prime
g_a bytes Yes G a
server_time int Yes Server time

Type: Server_DH_inner_data

Example:

$server_DH_inner_data = ['_' => 'server_DH_inner_data', 'nonce' => int128, 'server_nonce' => int128, 'g' => int, 'dh_prime' => 'bytes', 'g_a' => 'bytes', 'server_time' => int];

PWRTelegram json-encoded version:

{"_": "server_DH_inner_data", "nonce": int128, "server_nonce": int128, "g": int, "dh_prime": {"_": "bytes", "bytes":"base64 encoded bytes"}, "g_a": {"_": "bytes", "bytes":"base64 encoded bytes"}, "server_time": int}

Or, if you're into Lua:

server_DH_inner_data={_='server_DH_inner_data', nonce=int128, server_nonce=int128, g=int, dh_prime='bytes', g_a='bytes', server_time=int}