MadelineProtoDocs/old_docs/API_docs_v71/constructors/updates.state.md
2019-12-27 18:46:25 +01:00

1.2 KiB

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

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}