MadelineProtoDocs/old_docs/API_docs_v11/constructors/updates.channelDifference.md
2020-06-16 17:50:25 +02:00

1.6 KiB

title description image redirect_from
updates.channelDifference The new updates https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/updates_channelDifference.html

Constructor: updates.channelDifference

Back to constructors index

The new updates

Attributes:

Name Type Required Description
final Bool Optional Whether there are more updates to be fetched using getDifference, starting from the provided pts
channel_pts int Yes
timeout int Optional Clients are supposed to refetch the channel difference after timeout seconds have elapsed
new_messages Array of Message Yes New messages
other_updates Array of Update Yes Other updates
chats Array of Chat Yes Chats
users Array of User Yes Users

Type: updates.ChannelDifference

Example:

$updates.channelDifference = ['_' => 'updates.channelDifference', 'final' => Bool, 'channel_pts' => int, 'timeout' => int, 'new_messages' => [Message, Message], 'other_updates' => [Update, Update], 'chats' => [Chat, Chat], 'users' => [User, User]];

Or, if you're into Lua:

updates.channelDifference={_='updates.channelDifference', final=Bool, channel_pts=int, timeout=int, new_messages={Message}, other_updates={Update}, chats={Chat}, users={User}}