MadelineProto/docs/MTProto_docs/constructors/new_session_created.md

45 lines
915 B
Markdown
Raw Normal View History

---
title: new_session_created
description: new_session_created attributes, type and example
---
## Constructor: new\_session\_created
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|
|first\_msg\_id|[long](../types/long.md) | Yes|
|unique\_id|[long](../types/long.md) | Yes|
|server\_salt|[long](../types/long.md) | Yes|
### Type: [NewSession](../types/NewSession.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$new_session_created = ['_' => 'new_session_created', 'first_msg_id' => long, 'unique_id' => long, 'server_salt' => long];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "new_session_created", "first_msg_id": long, "unique_id": long, "server_salt": long}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
new_session_created={_='new_session_created', first_msg_id=long, unique_id=long, server_salt=long}
```