From f551aeac99dbe5e68308707d55b4e007948ff697 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 6 Nov 2023 16:41:08 +0000 Subject: [PATCH] Update content of files --- data/web/telegram.org/blog/giveaways.html | 2 +- data/web/telegram.org/js/telegram-web-app.js | 3 +++ data/web/webappcontent.telegram.org/cafe.html | 2 +- data/web/webappcontent.telegram.org/demo.html | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/data/web/telegram.org/blog/giveaways.html b/data/web/telegram.org/blog/giveaways.html index e33f72af8a..3529b7c84b 100644 --- a/data/web/telegram.org/blog/giveaways.html +++ b/data/web/telegram.org/blog/giveaways.html @@ -109,7 +109,7 @@
-

Channels of any level can start a giveaway via Channel Info > ⋮ or ⋯ > Statistics > Boosts.

+

Channels of any level can start a giveaway via Channel Info > ⋮ or ⋯ > Statistics > Boosts > Get Boosts via Gifts.

Paying for Giveaways

To start a giveaway, the organizer must pay in advance for the Premium subscriptions they wish to award. This can be done from any Telegram app, but is more affordable via @PremiumBot or Fragment.

diff --git a/data/web/telegram.org/js/telegram-web-app.js b/data/web/telegram.org/js/telegram-web-app.js index 11b3a348e0..f8f9c35511 100644 --- a/data/web/telegram.org/js/telegram-web-app.js +++ b/data/web/telegram.org/js/telegram-web-app.js @@ -37,6 +37,9 @@ iFrameStyle.innerHTML = dataParsed.eventData; } } else if (dataParsed.eventType == 'reload_iframe') { + try { + window.parent.postMessage(JSON.stringify({eventType: 'iframe_will_reload'}), '*'); + } catch (e) {} location.reload(); } else { receiveEvent(dataParsed.eventType, dataParsed.eventData); diff --git a/data/web/webappcontent.telegram.org/cafe.html b/data/web/webappcontent.telegram.org/cafe.html index 0a52b852b8..64f5ecfc8d 100644 --- a/data/web/webappcontent.telegram.org/cafe.html +++ b/data/web/webappcontent.telegram.org/cafe.html @@ -9,7 +9,7 @@ - + +