summaryrefslogtreecommitdiff
path: root/protocols/Telegram/tdlib/td/td/telegram/LinkManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/tdlib/td/td/telegram/LinkManager.h')
-rw-r--r--protocols/Telegram/tdlib/td/td/telegram/LinkManager.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/protocols/Telegram/tdlib/td/td/telegram/LinkManager.h b/protocols/Telegram/tdlib/td/td/telegram/LinkManager.h
index 0620815d94..ee477dd2cc 100644
--- a/protocols/Telegram/tdlib/td/td/telegram/LinkManager.h
+++ b/protocols/Telegram/tdlib/td/td/telegram/LinkManager.h
@@ -1,5 +1,5 @@
//
-// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023
+// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -7,7 +7,8 @@
#pragma once
#include "td/telegram/CustomEmojiId.h"
-#include "td/telegram/FullMessageId.h"
+#include "td/telegram/DialogBoostLinkInfo.h"
+#include "td/telegram/MessageFullId.h"
#include "td/telegram/MessageLinkInfo.h"
#include "td/telegram/td_api.h"
#include "td/telegram/UserId.h"
@@ -67,14 +68,16 @@ class LinkManager final : public Actor {
void update_autologin_domains(vector<string> autologin_domains, vector<string> url_auth_domains,
vector<string> whitelisted_domains);
+ void get_recent_me_urls(const string &referrer, Promise<td_api::object_ptr<td_api::tMeUrls>> &&promise);
+
void get_deep_link_info(Slice link, Promise<td_api::object_ptr<td_api::deepLinkInfo>> &&promise);
void get_external_link_info(string &&link, Promise<td_api::object_ptr<td_api::LoginUrlInfo>> &&promise);
- void get_login_url_info(FullMessageId full_message_id, int64 button_id,
+ void get_login_url_info(MessageFullId message_full_id, int64 button_id,
Promise<td_api::object_ptr<td_api::LoginUrlInfo>> &&promise);
- void get_login_url(FullMessageId full_message_id, int64 button_id, bool allow_write_access,
+ void get_login_url(MessageFullId message_full_id, int64 button_id, bool allow_write_access,
Promise<td_api::object_ptr<td_api::httpUrl>> &&promise);
void get_link_login_url(const string &url, bool allow_write_access,
@@ -83,6 +86,8 @@ class LinkManager final : public Actor {
static Result<string> get_background_url(const string &name,
td_api::object_ptr<td_api::BackgroundType> background_type);
+ static td_api::object_ptr<td_api::BackgroundType> get_background_type_object(const string &link, bool is_pattern);
+
static string get_dialog_filter_invite_link_slug(Slice invite_link);
static string get_dialog_filter_invite_link(Slice slug, bool is_internal);
@@ -97,7 +102,7 @@ class LinkManager final : public Actor {
static string get_instant_view_link(Slice url, Slice rhash);
- static string get_public_dialog_link(Slice username, bool is_internal);
+ static string get_public_dialog_link(Slice username, Slice draft_text, bool open_profile, bool is_internal);
static Result<string> get_proxy_link(const Proxy &proxy, bool is_internal);
@@ -107,6 +112,8 @@ class LinkManager final : public Actor {
static Result<CustomEmojiId> get_link_custom_emoji_id(Slice url);
+ static Result<DialogBoostLinkInfo> get_dialog_boost_link_info(Slice url);
+
static Result<MessageLinkInfo> get_message_link_info(Slice url);
private:
@@ -121,9 +128,12 @@ class LinkManager final : public Actor {
class InternalLinkBotAddToChannel;
class InternalLinkBotStart;
class InternalLinkBotStartInGroup;
+ class InternalLinkBusinessChat;
+ class InternalLinkBuyStars;
class InternalLinkChangePhoneNumber;
class InternalLinkConfirmPhone;
class InternalLinkDefaultMessageAutoDeleteTimerSettings;
+ class InternalLinkDialogBoost;
class InternalLinkDialogFolderInvite;
class InternalLinkDialogFolderSettings;
class InternalLinkDialogInvite;
@@ -133,10 +143,13 @@ class LinkManager final : public Actor {
class InternalLinkInvoice;
class InternalLinkLanguage;
class InternalLinkLanguageSettings;
+ class InternalLinkMainWebApp;
class InternalLinkMessage;
class InternalLinkMessageDraft;
class InternalLinkPassportDataRequest;
class InternalLinkPremiumFeatures;
+ class InternalLinkPremiumGift;
+ class InternalLinkPremiumGiftCode;
class InternalLinkPrivacyAndSecuritySettings;
class InternalLinkProxy;
class InternalLinkPublicDialog;
@@ -144,6 +157,7 @@ class LinkManager final : public Actor {
class InternalLinkRestorePurchases;
class InternalLinkSettings;
class InternalLinkStickerSet;
+ class InternalLinkStory;
class InternalLinkTheme;
class InternalLinkThemeSettings;
class InternalLinkUnknownDeepLink;