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

1.0 KiB

title description image
new_session_created New session created https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: new_session_created

Back to constructors index

New session created

Attributes:

Name Type Required Description
first_msg_id long Yes First msg ID
unique_id long Yes Unique ID
server_salt long Yes Server salt

Type: NewSession

Example:

$new_session_created = ['_' => 'new_session_created', 'first_msg_id' => long, 'unique_id' => long, 'server_salt' => long];

PWRTelegram json-encoded version:

{"_": "new_session_created", "first_msg_id": long, "unique_id": long, "server_salt": long}

Or, if you're into Lua:

new_session_created={_='new_session_created', first_msg_id=long, unique_id=long, server_salt=long}