Update content of files

This commit is contained in:
GitHub Action 2023-04-15 10:16:28 +00:00
parent 7133844375
commit 59250afea9
2 changed files with 3 additions and 3 deletions

View file

@ -441,7 +441,7 @@
</div>
<script src="https://tg.dev/js/jquery.min.js"></script>
<script src="https://tg.dev/js/tgsticker.js?31"></script>
<script src="/js/cafe.js?27"></script>
<script src="/js/cafe.js?28"></script>
<script>Cafe.init({"apiUrl":"\/cafe\/api","mode":null,"userId":0,"userHash":null});</script>
</body>
</html>

View file

@ -284,9 +284,9 @@ var Cafe = {
Cafe.toggleLoading(false);
if (result.ok) {
if (Cafe.mode == 'inline') {
Telegram.WebApp.switchInlineQuery('my');
Telegram.WebApp.switchInlineQuery('#' + result.order_id);
} else if (Cafe.mode == 'link') {
Telegram.WebApp.switchInlineQuery('my', ['users', 'groups']);
Telegram.WebApp.switchInlineQuery('#' + result.order_id, ['users', 'groups']);
} else if (invoiceSupported) {
Telegram.WebApp.openInvoice(result.invoice_url, function(status) {
if (status == 'paid') {