Update layer to 165.
This commit is contained in:
parent
de32750836
commit
9a40ea0f10
@ -1585,7 +1585,7 @@ peerStories#9a35e999 flags:# peer:Peer max_read_id:flags.0?int stories:Vector<St
|
|||||||
|
|
||||||
stories.peerStories#cae68768 stories:PeerStories chats:Vector<Chat> users:Vector<User> = stories.PeerStories;
|
stories.peerStories#cae68768 stories:PeerStories chats:Vector<Chat> users:Vector<User> = stories.PeerStories;
|
||||||
|
|
||||||
stories.boostsStatus#66ea1fef flags:# my_boost:flags.2?true level:int current_level_boosts:int boosts:int next_level_boosts:flags.0?int premium_audience:flags.1?StatsPercentValue = stories.BoostsStatus;
|
stories.boostsStatus#e5c1aa5c flags:# my_boost:flags.2?true level:int current_level_boosts:int boosts:int next_level_boosts:flags.0?int premium_audience:flags.1?StatsPercentValue boost_url:string = stories.BoostsStatus;
|
||||||
|
|
||||||
stories.canApplyBoostOk#c3173587 = stories.CanApplyBoostResult;
|
stories.canApplyBoostOk#c3173587 = stories.CanApplyBoostResult;
|
||||||
stories.canApplyBoostReplace#712c4655 current_boost:Peer chats:Vector<Chat> = stories.CanApplyBoostResult;
|
stories.canApplyBoostReplace#712c4655 current_boost:Peer chats:Vector<Chat> = stories.CanApplyBoostResult;
|
||||||
@ -1594,6 +1594,8 @@ booster#e9e6380 user_id:long expires:int = Booster;
|
|||||||
|
|
||||||
stories.boostersList#f3dd3d1d flags:# count:int boosters:Vector<Booster> next_offset:flags.0?string users:Vector<User> = stories.BoostersList;
|
stories.boostersList#f3dd3d1d flags:# count:int boosters:Vector<Booster> next_offset:flags.0?string users:Vector<User> = stories.BoostersList;
|
||||||
|
|
||||||
|
messages.webPage#fd5e12bd webpage:WebPage chats:Vector<Chat> users:Vector<User> = messages.WebPage;
|
||||||
|
|
||||||
---functions---
|
---functions---
|
||||||
|
|
||||||
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
|
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
|
||||||
@ -1822,7 +1824,7 @@ messages.setInlineGameScore#15ad9f64 flags:# edit_message:flags.0?true force:fla
|
|||||||
messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores;
|
messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores;
|
||||||
messages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores;
|
messages.getInlineGameHighScores#f635e1b id:InputBotInlineMessageID user_id:InputUser = messages.HighScores;
|
||||||
messages.getCommonChats#e40ca104 user_id:InputUser max_id:long limit:int = messages.Chats;
|
messages.getCommonChats#e40ca104 user_id:InputUser max_id:long limit:int = messages.Chats;
|
||||||
messages.getWebPage#32ca8f91 url:string hash:int = WebPage;
|
messages.getWebPage#8d9692a3 url:string hash:int = messages.WebPage;
|
||||||
messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool;
|
messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool;
|
||||||
messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int order:Vector<InputDialogPeer> = Bool;
|
messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int order:Vector<InputDialogPeer> = Bool;
|
||||||
messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs;
|
messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
|
|
||||||
constexpr int32 MTPROTO_LAYER = 164;
|
constexpr int32 MTPROTO_LAYER = 165;
|
||||||
|
|
||||||
enum class Version : int32 {
|
enum class Version : int32 {
|
||||||
Initial, // 0
|
Initial, // 0
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include "td/telegram/AnimationsManager.h"
|
#include "td/telegram/AnimationsManager.h"
|
||||||
#include "td/telegram/AudiosManager.h"
|
#include "td/telegram/AudiosManager.h"
|
||||||
#include "td/telegram/AuthManager.h"
|
#include "td/telegram/AuthManager.h"
|
||||||
|
#include "td/telegram/ContactsManager.h"
|
||||||
#include "td/telegram/Dependencies.h"
|
#include "td/telegram/Dependencies.h"
|
||||||
#include "td/telegram/Dimensions.h"
|
#include "td/telegram/Dimensions.h"
|
||||||
#include "td/telegram/Document.h"
|
#include "td/telegram/Document.h"
|
||||||
@ -123,9 +124,12 @@ class GetWebPageQuery final : public Td::ResultHandler {
|
|||||||
|
|
||||||
auto ptr = result_ptr.move_as_ok();
|
auto ptr = result_ptr.move_as_ok();
|
||||||
LOG(INFO) << "Receive result for GetWebPageQuery: " << to_string(ptr);
|
LOG(INFO) << "Receive result for GetWebPageQuery: " << to_string(ptr);
|
||||||
if (ptr->get_id() == telegram_api::webPageNotModified::ID) {
|
td_->contacts_manager_->on_get_users(std::move(ptr->users_), "GetWebPageQuery");
|
||||||
|
td_->contacts_manager_->on_get_chats(std::move(ptr->chats_), "GetWebPageQuery");
|
||||||
|
auto page = std::move(ptr->webpage_);
|
||||||
|
if (page->get_id() == telegram_api::webPageNotModified::ID) {
|
||||||
if (web_page_id_.is_valid()) {
|
if (web_page_id_.is_valid()) {
|
||||||
auto web_page = move_tl_object_as<telegram_api::webPageNotModified>(ptr);
|
auto web_page = move_tl_object_as<telegram_api::webPageNotModified>(page);
|
||||||
int32 view_count = web_page->cached_page_views_;
|
int32 view_count = web_page->cached_page_views_;
|
||||||
td_->web_pages_manager_->on_get_web_page_instant_view_view_count(web_page_id_, view_count);
|
td_->web_pages_manager_->on_get_web_page_instant_view_view_count(web_page_id_, view_count);
|
||||||
return promise_.set_value(std::move(web_page_id_));
|
return promise_.set_value(std::move(web_page_id_));
|
||||||
@ -134,7 +138,7 @@ class GetWebPageQuery final : public Td::ResultHandler {
|
|||||||
return on_error(Status::Error(500, "Receive webPageNotModified"));
|
return on_error(Status::Error(500, "Receive webPageNotModified"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto web_page_id = td_->web_pages_manager_->on_get_web_page(std::move(ptr), DialogId());
|
auto web_page_id = td_->web_pages_manager_->on_get_web_page(std::move(page), DialogId());
|
||||||
td_->web_pages_manager_->on_get_web_page_by_url(url_, web_page_id, false);
|
td_->web_pages_manager_->on_get_web_page_by_url(url_, web_page_id, false);
|
||||||
promise_.set_value(std::move(web_page_id));
|
promise_.set_value(std::move(web_page_id));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user