You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Layers/Generated.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2440,7 +2440,7 @@ public function sendInvoice(
2440
2440
* @param LabeledPrice[] $prices Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in <a href="https://t.me/BotNews/90">Telegram Stars</a>.
2441
2441
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the link will be created. For payments in <a href="https://t.me/BotNews/90">Telegram Stars</a> only.
2442
2442
* @param string $provider_token Payment provider token, obtained via <a href="https://t.me/botfather">@BotFather</a>. Pass an empty string for payments in <a href="https://t.me/BotNews/90">Telegram Stars</a>.
2443
-
* @param int $subscription_period The number of seconds the subscription will be active for before the next payment. The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. Any number of subscriptions can be active for a given bot at the same time, including multiple concurrent subscriptions from the same user.
2443
+
* @param int $subscription_period The number of seconds the subscription will be active for before the next payment. The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. Any number of subscriptions can be active for a given bot at the same time, including multiple concurrent subscriptions from the same user. Subscription price must no exceed 2500 Telegram Stars.
2444
2444
* @param int $max_tip_amount The maximum accepted amount for tips in the <em>smallest units</em> of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the <em>exp</em> parameter in <a href="https://core.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0. Not supported for payments in <a href="https://t.me/BotNews/90">Telegram Stars</a>.
2445
2445
* @param int[] $suggested_tip_amounts A JSON-serialized array of suggested amounts of tips in the <em>smallest units</em> of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed <em>max_tip_amount</em>.
2446
2446
* @param string $provider_data JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.
* Contains information about the affiliate that received a commission via this transaction.
13
+
*/
14
+
class AffiliateInfo extends Type
15
+
{
16
+
/** The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users */
17
+
publicint$commission_per_mille;
18
+
19
+
/** Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds */
20
+
publicint$amount;
21
+
22
+
/** <em>Optional</em>. The bot or the user that received an affiliate commission if it was received by a bot or a user */
23
+
public ?User$affiliate_user = null;
24
+
25
+
/** <em>Optional</em>. The chat that received an affiliate commission if it was received by a chat */
26
+
public ?Chat$affiliate_chat = null;
27
+
28
+
/** <em>Optional</em>. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds */
29
+
public ?int$nanostar_amount = null;
30
+
31
+
/**
32
+
* @param int $commission_per_mille The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users
33
+
* @param int $amount Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds
34
+
* @param User $affiliate_user <em>Optional</em>. The bot or the user that received an affiliate commission if it was received by a bot or a user
35
+
* @param Chat $affiliate_chat <em>Optional</em>. The chat that received an affiliate commission if it was received by a chat
36
+
* @param int $nanostar_amount <em>Optional</em>. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds
Copy file name to clipboardExpand all lines: src/Telegram/StarTransaction.php
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,15 @@ class StarTransaction extends Type
16
16
/** Unique identifier of the transaction. Coincides with the identifier of the original transaction for refund transactions. Coincides with <em>SuccessfulPayment.telegram_payment_charge_id</em> for successful incoming payments from users. */
17
17
publicstring$id;
18
18
19
-
/** Number of Telegram Stars transferred by the transaction */
19
+
/** Integer amount of Telegram Stars transferred by the transaction */
20
20
publicint$amount;
21
21
22
22
/** Date the transaction was created in Unix time */
23
23
publicint$date;
24
24
25
+
/** <em>Optional</em>. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999 */
26
+
public ?int$nanostar_amount = null;
27
+
25
28
/** <em>Optional</em>. Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions */
26
29
public ?TransactionPartner$source = null;
27
30
@@ -30,22 +33,25 @@ class StarTransaction extends Type
30
33
31
34
/**
32
35
* @param string $id Unique identifier of the transaction. Coincides with the identifier of the original transaction for refund transactions. Coincides with <em>SuccessfulPayment.telegram_payment_charge_id</em> for successful incoming payments from users.
33
-
* @param int $amount Number of Telegram Stars transferred by the transaction
36
+
* @param int $amount Integer amount of Telegram Stars transferred by the transaction
34
37
* @param int $date Date the transaction was created in Unix time
38
+
* @param int $nanostar_amount <em>Optional</em>. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999
35
39
* @param TransactionPartner $source <em>Optional</em>. Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions
36
40
* @param TransactionPartner $receiver <em>Optional</em>. Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions
* Describes the affiliate program that issued the affiliate commission received via this transaction.
11
+
*/
12
+
class TransactionPartnerAffiliateProgram extends TransactionPartner
13
+
{
14
+
/** Type of the transaction partner, always “affiliate_program” */
15
+
publicstring$type = 'affiliate_program';
16
+
17
+
/** The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users */
18
+
publicint$commission_per_mille;
19
+
20
+
/** <em>Optional</em>. Information about the bot that sponsored the affiliate program */
21
+
public ?User$sponsor_user = null;
22
+
23
+
/**
24
+
* @param int $commission_per_mille The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users
25
+
* @param User $sponsor_user <em>Optional</em>. Information about the bot that sponsored the affiliate program
0 commit comments