diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index f5499c069..f35cf2888 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -11841,7 +11841,8 @@ bool ContactsManager::on_get_channel_error(ChannelId channel_id, const Status &s auto c = get_channel(channel_id); if (c == nullptr) { - if (td_->auth_manager_->is_bot() && source == "GetChannelsQuery") { + if (source == "GetChannelDifferenceQuery" || (td_->auth_manager_->is_bot() && source == "GetChannelsQuery")) { + // get channel difference after restart // get channel from server by its identifier return true; } diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index fb7dbc52a..775353c2c 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -4681,7 +4681,7 @@ class GetChannelDifferenceQuery final : public Td::ResultHandler { void on_error(Status status) final { if (!td_->messages_manager_->on_get_dialog_error(dialog_id_, status, "GetChannelDifferenceQuery")) { - LOG(ERROR) << "Receive updates.getChannelDifference error for " << dialog_id_ << " with pts " << pts_ + LOG(ERROR) << "Receive error for GetChannelDifferenceQuery for " << dialog_id_ << " with pts " << pts_ << " and limit " << limit_ << ": " << status; } td_->messages_manager_->on_get_channel_difference(dialog_id_, pts_, limit_, nullptr);