MadelineProtoDocs/old_docs/API_docs_v109/constructors/encryptedChatRequested.md
2020-03-06 12:24:14 +01:00

1.3 KiB

title description image
encryptedChatRequested Request to create an encrypted chat. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: encryptedChatRequested

Back to constructors index

Request to create an encrypted chat.

Attributes:

Name Type Required Description
id int Yes Chat ID
access_hash long Yes Check sum depending on user ID
date int Yes Chat creation date
admin_id int Yes Chat creator ID
participant_id int Yes ID of second chat participant
g_a bytes Yes A = g ^ a mod p, see Wikipedia

Type: EncryptedChat

Example:

$encryptedChatRequested = ['_' => 'encryptedChatRequested', 'id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a' => 'bytes'];

Or, if you're into Lua:

encryptedChatRequested={_='encryptedChatRequested', id=int, access_hash=long, date=int, admin_id=int, participant_id=int, g_a='bytes'}