From 0dc8d0df143e3c143b5a454d086ea11bea7e5872 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 4 Aug 2024 17:22:23 +0000 Subject: [PATCH] Update content of files --- .../web/corefork.telegram.org/api/layers.html | 3 +- data/web/corefork.telegram.org/api/links.html | 2 +- .../method/messages.getExtendedMedia.html | 13 +- data/web/corefork.telegram.org/methods.html | 231 +++++++++--------- 4 files changed, 133 insertions(+), 116 deletions(-) diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html index 7012d0f4f0..96745f1903 100644 --- a/data/web/corefork.telegram.org/api/layers.html +++ b/data/web/corefork.telegram.org/api/layers.html @@ -79,9 +79,10 @@

Schema changes

diff --git a/data/web/corefork.telegram.org/api/links.html b/data/web/corefork.telegram.org/api/links.html index 2c2a7a352e..b1002c843d 100644 --- a/data/web/corefork.telegram.org/api/links.html +++ b/data/web/corefork.telegram.org/api/links.html @@ -1276,7 +1276,7 @@ tg://resolve?domain=<bot_username>&startapp=<start_parameter>&am
t.me/<bot_username>/<short_name>?startapp=<start_parameter>&mode=<mode>

tg: syntax:

tg://resolve?domain=<bot_username>&appname=<short_name>&startapp=<start_parameter>&mode=<mode>
-

Note that Mini App links have a similar syntax, without a short_name parameter.

+

Note that Main Mini App links have a similar syntax, without a short_name parameter.

Parameters:

diff --git a/data/web/corefork.telegram.org/method/messages.getExtendedMedia.html b/data/web/corefork.telegram.org/method/messages.getExtendedMedia.html index d971d39a2f..d344b28446 100644 --- a/data/web/corefork.telegram.org/method/messages.getExtendedMedia.html +++ b/data/web/corefork.telegram.org/method/messages.getExtendedMedia.html @@ -4,10 +4,10 @@ messages.getExtendedMedia - + - + @@ -44,7 +44,7 @@

Fetch updated information about paid media, see here » for the full flow.

This method will return an array of updateMessageExtendedMedia updates, only for messages containing already bought paid media.
-No information will be returned for messages containing not yet bought paid media.

+No information will be returned for messages containing not yet bought paid media.

Result

-

Updates

+

Updates

+

Related pages

+

Paid media

+

Content creators can accept Stars by publishing paid photos or videos on their channels. Subscribers will be allowed to view such posts only after paying the author to unlock them.

+

updateMessageExtendedMedia

+

You bought a paid media »: this update contains the revealed media.

diff --git a/data/web/corefork.telegram.org/methods.html b/data/web/corefork.telegram.org/methods.html index abe693370b..40a48348e3 100644 --- a/data/web/corefork.telegram.org/methods.html +++ b/data/web/corefork.telegram.org/methods.html @@ -509,6 +509,100 @@ Look for updates of telegram's terms of service…"> +

Working with Main Mini Bot Apps » and the Mini App Store

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameDescription
bots.getPopularAppBotsFetch popular Main Mini Apps, to be used in the apps tab of global search ».
bots.addPreviewMediaAdd a main mini app preview, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
bots.editPreviewMediaEdit a main mini app preview, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
bots.deletePreviewMediaDelete a main mini app preview, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
bots.reorderPreviewMediasReorder a main mini app previews, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
bots.getPreviewInfoBot owners only, fetch main mini app preview information, see here » for more info.

Note: technically non-owners may also invoke this method, but it will always behave exactly as bots.getPreviewMedias, returning only previews for the current language and an empty lang_codes array, regardless of the passed lang_code, so please only use bots.getPreviewMedias if you're not the owner of the bot.
bots.getPreviewMediasFetch main mini app previews, see here » for more info.
messages.requestMainWebView 
+

Working with Mini Bot Apps »

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameDescription
messages.requestWebViewOpen a bot mini app, sending over user information after user confirmation.

After calling this method, until the user closes the webview, messages.prolongWebView must be called every 60 seconds.
messages.prolongWebViewIndicate to the server (from the user side) that the user is still using a web app.

If the method returns a QUERY_ID_INVALID error, the webview must be closed.
messages.requestSimpleWebViewOpen a bot mini app.
messages.sendWebViewResultMessageTerminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user.
messages.sendWebViewDataUsed by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.
messages.requestAppWebViewOpen a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.

After calling this method, until the user closes the webview, messages.prolongWebView must be called every 60 seconds.
messages.getBotAppObtain information about a direct link Mini App
bots.canSendMessageCheck whether the specified bot can send us messages
bots.allowSendMessageAllow the specified bot to send us messages
bots.invokeWebViewCustomMethodSend a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ».

The response should be sent using a custom_method_invoked event, see here » for more info on the flow.

Working with Seamless Telegram Login

@@ -712,6 +806,26 @@ Look for updates of telegram's terms of service…"> + + + + + + + + + + + + + + + + + + + +
payments.refundStarsCharge Refund a Telegram Stars transaction, see here » for more info.
payments.getStarsRevenueStatsGet Telegram Star revenue statistics ».
payments.getStarsRevenueWithdrawalUrlWithdraw funds from a channel or bot's star balance ».
payments.getStarsRevenueAdsAccountUrlReturns a URL for a Telegram Ad platform account that can be used to set up advertisements for channel/bot in peer, paid using the Telegram Stars owned by the specified peer, see here » for more info.
payments.getStarsTransactionsByIDObtain info about Telegram Star transactions » using specific transaction IDs.
payments.getStarsGiftOptionsObtain a list of Telegram Stars gift options » as starsGiftOption constructors.

Working with VoIP calls

@@ -1429,10 +1543,6 @@ Look for updates of telegram's terms of service…"> Upload a file and associate it to a chat (without actually sending it to the chat) -messages.getExtendedMedia -Get information about extended media - - messages.getDocumentByHash Get a document by its SHA256 hash, mainly used for gifs @@ -1795,7 +1905,7 @@ Look for updates of telegram's terms of service…"> -

Working with mini bot apps »

+

Working with paid media

@@ -1805,44 +1915,8 @@ Look for updates of telegram's terms of service…"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
messages.requestWebViewOpen a bot mini app, sending over user information after user confirmation.

After calling this method, until the user closes the webview, messages.prolongWebView must be called every 60 seconds.
messages.prolongWebViewIndicate to the server (from the user side) that the user is still using a web app.

If the method returns a QUERY_ID_INVALID error, the webview must be closed.
messages.requestSimpleWebViewOpen a bot mini app.
messages.sendWebViewResultMessageTerminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user.
messages.sendWebViewDataUsed by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.
messages.requestAppWebViewOpen a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.

After calling this method, until the user closes the webview, messages.prolongWebView must be called every 60 seconds.
messages.getBotAppObtain information about a direct link Mini App
bots.canSendMessageCheck whether the specified bot can send us messages
bots.allowSendMessageAllow the specified bot to send us messages
bots.invokeWebViewCustomMethodSend a custom request from a mini bot app, triggered by a web_app_invoke_custom_method event ».

The response should be sent using a custom_method_invoked event, see here » for more info on the flow.
messages.getExtendedMediaFetch updated information about paid media, see here » for the full flow.

This method will return an array of updateMessageExtendedMedia updates, only for messages containing already bought paid media.
No information will be returned for messages containing not yet bought paid media.
@@ -2162,6 +2236,10 @@ Look for updates of telegram's terms of service…"> +stories.searchPosts +Globally search for stories using a hashtag or a location media area, see here » for more info on the full flow.

Either hashtag or area must be set when invoking the method. + + stories.canSendStory Check whether we can post stories as the specified peer. @@ -3624,73 +3702,6 @@ Look for updates of telegram's terms of service…"> Resolve a @username to get peer info - -

Other

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameDescription
stories.searchPostsGlobally search for stories using a hashtag or a location media area, see here » for more info on the full flow.

Either hashtag or area must be set when invoking the method.
payments.getStarsRevenueStatsGet Telegram Star revenue statistics ».
payments.getStarsRevenueWithdrawalUrlWithdraw funds from a channel or bot's star balance ».
payments.getStarsRevenueAdsAccountUrlReturns a URL for a Telegram Ad platform account that can be used to set up advertisements for channel/bot in peer, paid using the Telegram Stars owned by the specified peer, see here » for more info.
payments.getStarsTransactionsByIDObtain info about Telegram Star transactions » using specific transaction IDs.
payments.getStarsGiftOptionsObtain a list of Telegram Stars gift options » as starsGiftOption constructors.
bots.getPopularAppBotsFetch popular Main Mini Apps, to be used in the apps tab of global search ».
bots.addPreviewMediaAdd a main mini app preview, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
bots.editPreviewMediaEdit a main mini app preview, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
bots.deletePreviewMediaDelete a main mini app preview, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
bots.reorderPreviewMediasReorder a main mini app previews, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.
bots.getPreviewInfoBot owners only, fetch main mini app preview information, see here » for more info.

Note: technically non-owners may also invoke this method, but it will always behave exactly as bots.getPreviewMedias, returning only previews for the current language and an empty lang_codes array, regardless of the passed lang_code, so please only use bots.getPreviewMedias if you're not the owner of the bot.
bots.getPreviewMediasFetch main mini app previews, see here » for more info.
messages.requestMainWebView