diff --git a/data/corefork.telegram.org/bots/api-changelog.html b/data/corefork.telegram.org/bots/api-changelog.html index 8c884e7557..906c9f0500 100644 --- a/data/corefork.telegram.org/bots/api-changelog.html +++ b/data/corefork.telegram.org/bots/api-changelog.html @@ -47,23 +47,22 @@ To learn how to create…">
-

The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram. -To learn how to create and set up a bot, please consult our Introduction to Bots »

+

The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.
To learn how to create and set up a bot, please consult our Introduction to Bots »

You will find all changes to our Bot API on this page.

-

Recent changes

+

Recent changes

Subscribe to @BotNews to be the first to know about the latest updates and join the discussion in @BotTalk

-

April 16, 2022

+

April 16, 2022

Bot API 6.0

+ + diff --git a/data/telegram.org/js/telegram-web-app.js b/data/telegram.org/js/telegram-web-app.js index e45e1edf27..ae2acc5f63 100644 --- a/data/telegram.org/js/telegram-web-app.js +++ b/data/telegram.org/js/telegram-web-app.js @@ -322,6 +322,7 @@ (el.protocol == 'http:' || el.protocol == 'https:') && el.hostname == 't.me') { WebApp.openTgLink(el.href); + e.preventDefault(); } } @@ -752,8 +753,7 @@ throw Error('WebAppTgUrlInvalid'); } var path_full = a.pathname + a.search; - if (WebApp.isIframe || - versionAtLeast('1.1')) { + if (isIframe || versionAtLeast('1.1')) { WebView.postEvent('web_app_open_tg_link', false, {path_full: path_full}); } else { location.href = 'https://t.me' + path_full; diff --git a/data/webappcontent.telegram.org/cafe.html b/data/webappcontent.telegram.org/cafe.html index 88b19c9529..de81fffd36 100644 --- a/data/webappcontent.telegram.org/cafe.html +++ b/data/webappcontent.telegram.org/cafe.html @@ -9,7 +9,7 @@ - + +