Skip to content

Commit

Permalink
Update TDLib to 1.8.18 and fix the build.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Sep 15, 2023
1 parent 0d12622 commit 8cdddfb
Show file tree
Hide file tree
Showing 5 changed files with 342 additions and 229 deletions.
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/api/api_updates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3081,6 +3081,8 @@ void Updates::applyUpdate(const TLupdate &update) {
data.vterms_of_service().data(),
data.vterms_of_service_id().v.toUtf8()));
}, [&](const TLDupdateUsersNearby &data) {
}, [&](const TLDupdateUnconfirmedSession &data) {
// later
}, [&](const TLDupdateAttachmentMenuBots &data) {
session().attachWebView().apply(data);
}, [&](const TLDupdateWebAppMessageSent &data) {
Expand Down
12 changes: 12 additions & 0 deletions Telegram/SourceFiles/core/local_url_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,18 @@ bool HandleLocalUrl(
.openWebAppUrl = openWebAppUrl,
}));
});
}, [&](const TLDinternalLinkTypeSideMenuBot &data) {
if (!controller) {
return false;
}
controller->showPeerByLink(Navigation::PeerByLinkInfo{
.usernameOrId = data.vbot_username().v,
.attachBotToggleCommand = data.vurl().v,
.attachBotMenuOpen = true,
.clickFromMessageId = my.itemId,
});
controller->window().activate();
return true;
}, [&](const TLDinternalLinkTypeAuthenticationCode &data) {
const auto account = controller
? &controller->session().account()
Expand Down
Loading

0 comments on commit 8cdddfb

Please sign in to comment.