Link Search Menu Expand Document

Constructor: updates.channelDifference

Back to constructors index

The new updates

Attributes:

NameTypeRequiredDescription
finalBoolOptionalWhether there are more updates to be fetched using getDifference, starting from the provided pts
ptsintYesThe PTS from which to start getting updates the next time
timeoutintOptionalClients are supposed to refetch the channel difference after timeout seconds have elapsed
new_messagesArray of MessageYesNew messages
other_updatesArray of UpdateYesOther updates
chatsArray of ChatYesChats
usersArray of UserYesUsers

Type: updates.ChannelDifference

Example:

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