From 2d1c4666390cb82358618246002a3754613224b3 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 28 Feb 2023 20:10:34 +0000 Subject: [PATCH] Update content of files --- data/web/webappcontent.telegram.org/js/webappdemo.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/web/webappcontent.telegram.org/js/webappdemo.js b/data/web/webappcontent.telegram.org/js/webappdemo.js index 9c6c8c0286..9594949eb6 100644 --- a/data/web/webappcontent.telegram.org/js/webappdemo.js +++ b/data/web/webappcontent.telegram.org/js/webappdemo.js @@ -106,6 +106,9 @@ var DemoApp = { Telegram.WebApp.sendData(new Date().toString()); } }, + switchInlineQuery: function(query, choose_chat) { + Telegram.WebApp.switchInlineQuery(query, choose_chat ? ['users', 'bots', 'groups', 'channels'] : false); + }, requestLocation: function(el) { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) {