Allow bots to receive updates.channelDifference without changed pts.

GitOrigin-RevId: 26f4effa096105254d2ba17db753103830eab2f0
This commit is contained in:
levlam 2020-04-30 23:15:12 +03:00
parent 0b1b9be4ef
commit 0eb0654bd6

View File

@ -29264,7 +29264,7 @@ void MessagesManager::on_get_channel_difference(
}
auto new_pts = difference->pts_;
if (request_pts >= new_pts && request_pts > 1) {
if (request_pts >= new_pts && request_pts > 1 && (request_pts > new_pts || !td_->auth_manager_->is_bot())) {
LOG(ERROR) << "Receive channelDifference as result of getChannelDifference with pts = " << request_pts
<< " and limit = " << request_limit << " in " << dialog_id << ", but pts has changed from " << d->pts
<< " to " << new_pts << ". Difference: " << oneline(to_string(difference));