MadelineProtoDocs/old_docs/API_docs_v73/constructors/updates.md
Daniil Gentili e5a1324684 docufix
2018-04-04 23:19:57 +00:00

1.0 KiB

title description image
updates updates attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updates

Back to constructors index

Attributes:

Name Type Required
updates Array of Update Yes
users Array of User Yes
chats Array of Chat Yes
date int Yes
seq int Yes

Type: Updates

Example:

$updates = ['_' => 'updates', 'updates' => [Update, Update], 'users' => [User, User], 'chats' => [Chat, Chat], 'date' => int, 'seq' => int];

PWRTelegram json-encoded version:

{"_": "updates", "updates": [Update], "users": [User], "chats": [Chat], "date": int, "seq": int}

Or, if you're into Lua:

updates={_='updates', updates={Update}, users={User}, chats={Chat}, date=int, seq=int}