mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-04 02:28:31 +01:00
34 lines
1020 B
Markdown
34 lines
1020 B
Markdown
|
---
|
||
|
title: "updates"
|
||
|
description: "Full constructor of updates"
|
||
|
nav_exclude: true
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
---
|
||
|
# Constructor: updates
|
||
|
[Back to constructors index](/API_docs/constructors/index.html)
|
||
|
|
||
|
|
||
|
|
||
|
Full constructor of updates
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|---------------|----------|-------------|
|
||
|
|updates|Array of [Update](/API_docs/types/Update.html) | Yes|List of updates|
|
||
|
|users|Array of [User](/API_docs/types/User.html) | Yes|List of users mentioned in updates|
|
||
|
|chats|Array of [Chat](/API_docs/types/Chat.html) | Yes|List of chats mentioned in updates|
|
||
|
|date|[int](/API_docs/types/int.html) | Yes|Current date|
|
||
|
|seq|[int](/API_docs/types/int.html) | Yes|Total number of sent updates|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [Updates](/API_docs/types/Updates.html)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```
|
||
|
$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int];
|
||
|
```
|