From d379a1a8abded0f7cb6053f03d445d9ce494cc37 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 1 Mar 2023 23:36:43 +0000 Subject: [PATCH] Update content of files --- .../webappcontent.telegram.org/js/webappdemo.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/data/web/webappcontent.telegram.org/js/webappdemo.js b/data/web/webappcontent.telegram.org/js/webappdemo.js index 51285cdf38..9c6c8c0286 100644 --- a/data/web/webappcontent.telegram.org/js/webappdemo.js +++ b/data/web/webappcontent.telegram.org/js/webappdemo.js @@ -106,22 +106,6 @@ var DemoApp = { Telegram.WebApp.sendData(new Date().toString()); } }, - switchInlineQuery: function(query, choose_chat) { - var choose_chat_types = false; - if (choose_chat) { - var choose_chat_types = []; - var types = ['users', 'bots', 'groups', 'channels']; - for (var i = 0; i < types.length; i++) { - if ($('#select-' + types[i]).prop('checked')) { - choose_chat_types.push(types[i]); - } - } - if (!choose_chat_types.length) { - return DemoApp.showAlert('Select chat types!'); - } - } - Telegram.WebApp.switchInlineQuery(query, choose_chat_types); - }, requestLocation: function(el) { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function (position) {