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 @@
video_start_ts
parameter (especially useful for stories).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:
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.
+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…"> +Name | +Description | +
---|---|
bots.getPopularAppBots | +Fetch popular Main Mini Apps, to be used in the apps tab of global search ». | +
bots.addPreviewMedia | +Add 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.editPreviewMedia | +Edit 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.deletePreviewMedia | +Delete 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.reorderPreviewMedias | +Reorder 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.getPreviewInfo | +Bot 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.getPreviewMedias | +Fetch main mini app previews, see here » for more info. | +
messages.requestMainWebView | ++ |
Name | +Description | +
---|---|
messages.requestWebView | +Open 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.prolongWebView | +Indicate 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.requestSimpleWebView | +Open a bot mini app. | +
messages.sendWebViewResultMessage | +Terminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user. | +
messages.sendWebViewData | +Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it. | +
messages.requestAppWebView | +Open 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.getBotApp | +Obtain information about a direct link Mini App | +
bots.canSendMessage | +Check whether the specified bot can send us messages | +
bots.allowSendMessage | +Allow the specified bot to send us messages | +
bots.invokeWebViewCustomMethod | +Send 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. |
+
payments.refundStarsCharge | Refund a Telegram Stars transaction, see here » for more info. | +
payments.getStarsRevenueStats | +Get Telegram Star revenue statistics ». | +
payments.getStarsRevenueWithdrawalUrl | +Withdraw funds from a channel or bot's star balance ». | +
payments.getStarsRevenueAdsAccountUrl | +Returns 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.getStarsTransactionsByID | +Obtain info about Telegram Star transactions » using specific transaction IDs. | +
payments.getStarsGiftOptions | +Obtain a list of Telegram Stars gift options » as starsGiftOption constructors. | +
messages.requestWebView | -Open 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.prolongWebView | -Indicate 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.requestSimpleWebView | -Open a bot mini app. | -||
messages.sendWebViewResultMessage | -Terminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user. | -||
messages.sendWebViewData | -Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it. | -||
messages.requestAppWebView | -Open 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.getBotApp | -Obtain information about a direct link Mini App | -||
bots.canSendMessage | -Check whether the specified bot can send us messages | -||
bots.allowSendMessage | -Allow the specified bot to send us messages | -||
bots.invokeWebViewCustomMethod | -Send 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.getExtendedMedia | +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. |
hashtag
or area
must be set when invoking the method.Name | -Description | -
---|---|
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. |
-
payments.getStarsRevenueStats | -Get Telegram Star revenue statistics ». | -
payments.getStarsRevenueWithdrawalUrl | -Withdraw funds from a channel or bot's star balance ». | -
payments.getStarsRevenueAdsAccountUrl | -Returns 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.getStarsTransactionsByID | -Obtain info about Telegram Star transactions » using specific transaction IDs. | -
payments.getStarsGiftOptions | -Obtain a list of Telegram Stars gift options » as starsGiftOption constructors. | -
bots.getPopularAppBots | -Fetch popular Main Mini Apps, to be used in the apps tab of global search ». | -
bots.addPreviewMedia | -Add 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.editPreviewMedia | -Edit 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.deletePreviewMedia | -Delete 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.reorderPreviewMedias | -Reorder 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.getPreviewInfo | -Bot 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.getPreviewMedias | -Fetch main mini app previews, see here » for more info. | -
messages.requestMainWebView | -- |