MadelineProtoDocs/old_docs/API_docs_v18/constructors/updates_state.md
2019-12-27 17:48:04 +01:00

1.2 KiB

title description image
updates.state Updates state. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updates.state

Back to constructors index

Updates state.

Attributes:

Name Type Required Description
pts int Yes Number of events occured in a text box
qts int Yes Position in a sequence of updates in secret chats. For further detailes refer to article secret chats
Parameter was added in eigth layer.
date int Yes Date of condition
seq int Yes Number of sent updates
unread_count int Yes Number of unread messages

Type: updates_State

Example:

$updates_state = ['_' => 'updates.state', 'pts' => int, 'qts' => int, 'date' => int, 'seq' => int, 'unread_count' => int];

Or, if you're into Lua:

updates_state={_='updates.state', pts=int, qts=int, date=int, seq=int, unread_count=int}