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) {