MadelineProtoDocs/old_docs/API_docs_v18/constructors/messages_dhConfig.md
2019-12-27 17:48:04 +01:00

1.1 KiB

title description image
messages.dhConfig New set of configuring parameters. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messages.dhConfig

Back to constructors index

New set of configuring parameters.

Attributes:

Name Type Required Description
g int Yes New value prime, see Wikipedia
p bytes Yes New value primitive root, see Wikipedia
version int Yes Vestion of set of parameters
random bytes Yes Random sequence of bytes of assigned length

Type: messages_DhConfig

Example:

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

Or, if you're into Lua:

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