4baac3178e
Add PHP, Lua language tag to Code area
1.0 KiB
1.0 KiB
title | description | image |
---|---|---|
messages.dhConfig | messages_dhConfig attributes, type and example | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: messages.dhConfig
Attributes:
Name | Type | Required |
---|---|---|
g | int | Yes |
p | bytes | Yes |
version | int | Yes |
random | bytes | Yes |
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'}