mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-26 06:20:27 +01:00
Update content of files
This commit is contained in:
parent
ebaf8105b7
commit
8c5e5b7b42
1 changed files with 0 additions and 16 deletions
|
@ -106,22 +106,6 @@ var DemoApp = {
|
||||||
Telegram.WebApp.sendData(new Date().toString());
|
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) {
|
requestLocation: function(el) {
|
||||||
if (navigator.geolocation) {
|
if (navigator.geolocation) {
|
||||||
navigator.geolocation.getCurrentPosition(function (position) {
|
navigator.geolocation.getCurrentPosition(function (position) {
|
||||||
|
|
Loading…
Reference in a new issue