aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/AttachMenuManager.h
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-11-04 18:50:14 +0300
committerlevlam <levlam@telegram.org>2024-11-04 18:50:14 +0300
commit0f3f96536b7227919ce88b5b7d4e8e477ca23dca (patch)
tree4834615da3cdd5010b73f0580f04bdf9b5a40e25 /td/telegram/AttachMenuManager.h
parentcae43344b917636329dcd8a5c5cc8ac54d717d85 (diff)
Add td_api::webAppOpenParameters.
Diffstat (limited to 'td/telegram/AttachMenuManager.h')
-rw-r--r--td/telegram/AttachMenuManager.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/td/telegram/AttachMenuManager.h b/td/telegram/AttachMenuManager.h
index 982e2656f..dc592d87d 100644
--- a/td/telegram/AttachMenuManager.h
+++ b/td/telegram/AttachMenuManager.h
@@ -26,6 +26,7 @@
namespace td {
class Td;
+class WebAppOpenParameters;
class AttachMenuManager final : public Actor {
public:
@@ -42,16 +43,16 @@ class AttachMenuManager final : public Actor {
void reload_web_app(UserId bot_user_id, const string &web_app_short_name, Promise<Unit> &&promise);
void request_app_web_view(DialogId dialog_id, UserId bot_user_id, string &&web_app_short_name,
- string &&start_parameter, const td_api::object_ptr<td_api::themeParameters> &theme,
- string &&platform, bool allow_write_access, Promise<string> &&promise);
+ string &&start_parameter, const WebAppOpenParameters &parameters, bool allow_write_access,
+ Promise<string> &&promise);
void request_main_web_view(DialogId dialog_id, UserId bot_user_id, string &&start_parameter,
- const td_api::object_ptr<td_api::themeParameters> &theme, string &&platform,
+ const WebAppOpenParameters &parameters,
Promise<td_api::object_ptr<td_api::mainWebApp>> &&promise);
void request_web_view(DialogId dialog_id, UserId bot_user_id, MessageId top_thread_message_id,
td_api::object_ptr<td_api::InputMessageReplyTo> &&reply_to, string &&url,
- td_api::object_ptr<td_api::themeParameters> &&theme, string &&platform,
+ const WebAppOpenParameters &parameters,
Promise<td_api::object_ptr<td_api::webAppInfo>> &&promise);
void open_web_view(int64 query_id, DialogId dialog_id, UserId bot_user_id, MessageId top_thread_message_id,