From 4f9a8911e72ba4701339aa215042e9a78549ae95 Mon Sep 17 00:00:00 2001
From: GitHub Action Introducing attachment menus, bot web apps, custom bot menu buttons, suggested bot admin rights and ringtones.
Layer 140
-Also introducing replies to scheduled messages, deletion of all our supergroup messages for everyone, recommended sponsored messages, forced IPv6 connection attempts and more specific DC connection settings.
local_pts + pts_count < pts
(137 < 140
), t
local_seq + 1 > seq_start
, the updates were already applied, and must be ignored.local_seq + 1 < seq_start
, there's an updates gap that must be filled (updates.getDifference must be used as with common and secret event sequences).If the updates were applied, local Updates state must be updated with seq
and date
from the constructor.
If the updates were applied, local Updates state must be updated with seq
(unless it's 0) and date
from the constructor.
For all the other Updates type constructors there is no need to check seq
or change a local state.
To do this, updates.getDifference (common/secret state) or updates.getChannelDifference (channel state) with the respective local states must be called.