mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Add proof-of-concept support for keyboardButtonWebView.
This commit is contained in:
@@ -429,12 +429,14 @@ void SessionNavigation::resolveAttachWebview(
|
||||
|
||||
void SessionNavigation::requestAttachWebview(
|
||||
not_null<PeerData*> peer,
|
||||
not_null<UserData*> bot) {
|
||||
not_null<UserData*> bot,
|
||||
const QByteArray &url) {
|
||||
using Flag = MTPmessages_RequestWebView::Flag;
|
||||
_api.request(MTPmessages_RequestWebView(
|
||||
MTP_flags(0),
|
||||
MTP_flags(url.isEmpty() ? Flag(0) : Flag::f_url),
|
||||
peer->input,
|
||||
bot->inputUser,
|
||||
MTPstring(), // start_param
|
||||
MTP_bytes(url),
|
||||
MTPDataJSON() // theme_params
|
||||
)).done([=](const MTPWebViewResult &result) {
|
||||
result.match([&](const MTPDwebViewResultUrl &data) {
|
||||
|
Reference in New Issue
Block a user