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

1.1 KiB

title description image
messages.dhConfig Dh config https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messages.dhConfig

Back to constructors index

Dh config

Attributes:

Name Type Required Description
g int Yes G
p bytes Yes P
version int Yes Version
random bytes Yes Random

Type: messages_DhConfig

Example:

$messages_dhConfig = ['_' => 'messages.dhConfig', 'g' => int, 'p' => 'bytes', 'version' => int, 'random' => 'bytes'];

PWRTelegram json-encoded version:

{"_": "messages.dhConfig", "g": int, "p": {"_": "bytes", "bytes":"base64 encoded bytes"}, "version": int, "random": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

messages_dhConfig={_='messages.dhConfig', g=int, p='bytes', version=int, random='bytes'}