From f42967628f037daf1d60faae8049c58da1bd90a3 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 15 Oct 2024 00:25:06 +0200 Subject: [PATCH] Bump --- docs/API_docs/constructors/index.md | 6 +++--- .../constructors/inputStorePaymentPremiumGiftCode.md | 3 ++- docs/API_docs/constructors/messageActionGiftCode.md | 3 ++- docs/API_docs/constructors/messageActionGiftPremium.md | 3 ++- docs/API_docs/index.md | 2 +- docs/docs/USING_METHODS.md | 2 +- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/API_docs/constructors/index.md b/docs/API_docs/constructors/index.md index fcc8ec4b73..a2885e5d4f 100644 --- a/docs/API_docs/constructors/index.md +++ b/docs/API_docs/constructors/index.md @@ -1781,7 +1781,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$inputStorePaymentGiftPremium](/API_docs/constructors/inputStorePaymentGiftPremium.html) = \['user_id' => [InputUser](/API_docs/types/InputUser.html), 'currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), \]; *** -

[$inputStorePaymentPremiumGiftCode](/API_docs/constructors/inputStorePaymentPremiumGiftCode.html) = \['users' => \[[InputUser](/API_docs/types/InputUser.html)\], 'boost_peer' => [InputPeer](/API_docs/types/InputPeer.html), 'currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), \]; +

[$inputStorePaymentPremiumGiftCode](/API_docs/constructors/inputStorePaymentPremiumGiftCode.html) = \['users' => \[[InputUser](/API_docs/types/InputUser.html)\], 'boost_peer' => [InputPeer](/API_docs/types/InputPeer.html), 'currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), 'message' => [TextWithEntities](/API_docs/types/TextWithEntities.html), \]; ***

[$inputStorePaymentPremiumGiveaway](/API_docs/constructors/inputStorePaymentPremiumGiveaway.html) = \['only_new_subscribers' => [Bool](/API_docs/types/Bool.html), 'winners_are_visible' => [Bool](/API_docs/types/Bool.html), 'boost_peer' => [InputPeer](/API_docs/types/InputPeer.html), 'additional_peers' => \[[InputPeer](/API_docs/types/InputPeer.html)\], 'countries_iso2' => \[[string](/API_docs/types/string.html)\], 'prize_description' => [string](/API_docs/types/string.html), 'until_date' => [int](/API_docs/types/int.html), 'currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), \]; @@ -2015,10 +2015,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$messageActionGeoProximityReached](/API_docs/constructors/messageActionGeoProximityReached.html) = \['from_id' => [Peer](/API_docs/types/Peer.html), 'to_id' => [Peer](/API_docs/types/Peer.html), 'distance' => [int](/API_docs/types/int.html), \]; *** -

[$messageActionGiftCode](/API_docs/constructors/messageActionGiftCode.html) = \['via_giveaway' => [Bool](/API_docs/types/Bool.html), 'unclaimed' => [Bool](/API_docs/types/Bool.html), 'boost_peer' => [Peer](/API_docs/types/Peer.html), 'months' => [int](/API_docs/types/int.html), 'slug' => [string](/API_docs/types/string.html), 'currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), 'crypto_currency' => [string](/API_docs/types/string.html), 'crypto_amount' => [long](/API_docs/types/long.html), \]; +

[$messageActionGiftCode](/API_docs/constructors/messageActionGiftCode.html) = \['via_giveaway' => [Bool](/API_docs/types/Bool.html), 'unclaimed' => [Bool](/API_docs/types/Bool.html), 'boost_peer' => [Peer](/API_docs/types/Peer.html), 'months' => [int](/API_docs/types/int.html), 'slug' => [string](/API_docs/types/string.html), 'currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), 'crypto_currency' => [string](/API_docs/types/string.html), 'crypto_amount' => [long](/API_docs/types/long.html), 'message' => [TextWithEntities](/API_docs/types/TextWithEntities.html), \]; *** -

[$messageActionGiftPremium](/API_docs/constructors/messageActionGiftPremium.html) = \['currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), 'months' => [int](/API_docs/types/int.html), 'crypto_currency' => [string](/API_docs/types/string.html), 'crypto_amount' => [long](/API_docs/types/long.html), \]; +

[$messageActionGiftPremium](/API_docs/constructors/messageActionGiftPremium.html) = \['currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), 'months' => [int](/API_docs/types/int.html), 'crypto_currency' => [string](/API_docs/types/string.html), 'crypto_amount' => [long](/API_docs/types/long.html), 'message' => [TextWithEntities](/API_docs/types/TextWithEntities.html), \]; ***

[$messageActionGiftStars](/API_docs/constructors/messageActionGiftStars.html) = \['currency' => [string](/API_docs/types/string.html), 'amount' => [long](/API_docs/types/long.html), 'stars' => [long](/API_docs/types/long.html), 'crypto_currency' => [string](/API_docs/types/string.html), 'crypto_amount' => [long](/API_docs/types/long.html), 'transaction_id' => [string](/API_docs/types/string.html), \]; diff --git a/docs/API_docs/constructors/inputStorePaymentPremiumGiftCode.md b/docs/API_docs/constructors/inputStorePaymentPremiumGiftCode.md index 47ad33c20c..54a8a146b3 100644 --- a/docs/API_docs/constructors/inputStorePaymentPremiumGiftCode.md +++ b/docs/API_docs/constructors/inputStorePaymentPremiumGiftCode.md @@ -19,6 +19,7 @@ Used to gift [Telegram Premium](https://core.telegram.org/api/premium) subscript |boost\_peer|[Username, chat ID, Update, Message or InputPeer](/API_docs/types/InputPeer.html) | Optional|If set, the gifts will be sent on behalf of a channel we are an admin of, which will also assign some [boosts](https://core.telegram.org/api/boost) to it. Otherwise, the gift will be sent directly from the currently logged in users, and we will gain some extra [boost slots](https://core.telegram.org/api/boost). See [here ยป](https://core.telegram.org/api/giveaways) for more info on giveaways and gifts.| |currency|[string](/API_docs/types/string.html) | Yes|Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments#supported-currencies) code| |amount|[long](/API_docs/types/long.html) | Yes|Total price in the smallest units of the currency (integer, not float/double). For example, for a price of `US$ 1.45` pass `amount = 145`. See the exp parameter in [currencies.json](https://core.telegram.org/bots/payments/currencies.json), it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).| +|message|[TextWithEntities](/API_docs/types/TextWithEntities.html) | Optional| @@ -28,5 +29,5 @@ Used to gift [Telegram Premium](https://core.telegram.org/api/premium) subscript ### Example: ``` -$inputStorePaymentPremiumGiftCode = ['_' => 'inputStorePaymentPremiumGiftCode', 'users' => [InputUser, InputUser], 'boost_peer' => InputPeer, 'currency' => 'string', 'amount' => long]; +$inputStorePaymentPremiumGiftCode = ['_' => 'inputStorePaymentPremiumGiftCode', 'users' => [InputUser, InputUser], 'boost_peer' => InputPeer, 'currency' => 'string', 'amount' => long, 'message' => TextWithEntities]; ``` diff --git a/docs/API_docs/constructors/messageActionGiftCode.md b/docs/API_docs/constructors/messageActionGiftCode.md index 414513b456..3221db0a98 100644 --- a/docs/API_docs/constructors/messageActionGiftCode.md +++ b/docs/API_docs/constructors/messageActionGiftCode.md @@ -24,6 +24,7 @@ Contains a [Telegram Premium giftcode link](https://core.telegram.org/api/links# |amount|[long](/API_docs/types/long.html) | Optional|Total price in the smallest units of the currency (integer, not float/double). For example, for a price of `US$ 1.45` pass `amount = 145`. See the exp parameter in [currencies.json](https://core.telegram.org/bots/payments/currencies.json), it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).| |crypto\_currency|[string](/API_docs/types/string.html) | Optional|If set, the gift was made using the specified cryptocurrency.| |crypto\_amount|[long](/API_docs/types/long.html) | Optional|If `crypto_currency` is set, contains the paid amount, in the smallest units of the cryptocurrency.| +|message|[TextWithEntities](/API_docs/types/TextWithEntities.html) | Optional| @@ -33,5 +34,5 @@ Contains a [Telegram Premium giftcode link](https://core.telegram.org/api/links# ### Example: ``` -$messageActionGiftCode = ['_' => 'messageActionGiftCode', 'via_giveaway' => Bool, 'unclaimed' => Bool, 'boost_peer' => Peer, 'months' => int, 'slug' => 'string', 'currency' => 'string', 'amount' => long, 'crypto_currency' => 'string', 'crypto_amount' => long]; +$messageActionGiftCode = ['_' => 'messageActionGiftCode', 'via_giveaway' => Bool, 'unclaimed' => Bool, 'boost_peer' => Peer, 'months' => int, 'slug' => 'string', 'currency' => 'string', 'amount' => long, 'crypto_currency' => 'string', 'crypto_amount' => long, 'message' => TextWithEntities]; ``` diff --git a/docs/API_docs/constructors/messageActionGiftPremium.md b/docs/API_docs/constructors/messageActionGiftPremium.md index 4318c49223..64a2091962 100644 --- a/docs/API_docs/constructors/messageActionGiftPremium.md +++ b/docs/API_docs/constructors/messageActionGiftPremium.md @@ -20,6 +20,7 @@ Info about a gifted Telegram Premium subscription |months|[int](/API_docs/types/int.html) | Yes|Duration of the gifted Telegram Premium subscription| |crypto\_currency|[string](/API_docs/types/string.html) | Optional|If the gift was bought using a cryptocurrency, the cryptocurrency name.| |crypto\_amount|[long](/API_docs/types/long.html) | Optional|If the gift was bought using a cryptocurrency, price of the gift in the smallest units of a cryptocurrency.| +|message|[TextWithEntities](/API_docs/types/TextWithEntities.html) | Optional| @@ -29,5 +30,5 @@ Info about a gifted Telegram Premium subscription ### Example: ``` -$messageActionGiftPremium = ['_' => 'messageActionGiftPremium', 'currency' => 'string', 'amount' => long, 'months' => int, 'crypto_currency' => 'string', 'crypto_amount' => long]; +$messageActionGiftPremium = ['_' => 'messageActionGiftPremium', 'currency' => 'string', 'amount' => long, 'months' => int, 'crypto_currency' => 'string', 'crypto_amount' => long, 'message' => TextWithEntities]; ``` diff --git a/docs/API_docs/index.md b/docs/API_docs/index.md index 2019d1c013..8d4f65b457 100644 --- a/docs/API_docs/index.md +++ b/docs/API_docs/index.md @@ -1,6 +1,6 @@ --- title: "Telegram RPC API" -description: "MadelineProto API documentation (layer 189)" +description: "MadelineProto API documentation (layer 190)" has_children: true has_toc: false image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png diff --git a/docs/docs/USING_METHODS.md b/docs/docs/USING_METHODS.md index 3b731bd3d3..a4d3debf33 100644 --- a/docs/docs/USING_METHODS.md +++ b/docs/docs/USING_METHODS.md @@ -8,7 +8,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png There are simplifications for many, if not all of, these methods. -A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 189)](https://docs.madelineproto.xyz/API_docs/). +A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 190)](https://docs.madelineproto.xyz/API_docs/). [Now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html)