From 78e7441ba7f446e91a5c8655b9ef3868129d0cbc Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 1 Mar 2023 13:52:30 +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) {