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/Telegram/Message.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -206,6 +206,9 @@ class Message extends MaybeInaccessibleMessage
206
206
/** <em>Optional</em>. Message is a service message about a successful payment, information about the payment. <a href="https://core.telegram.org/bots/api#payments">More about payments »</a> */
207
207
public ?SuccessfulPayment$successful_payment = null;
208
208
209
+
/** <em>Optional</em>. Message is a service message about a refunded payment, information about the payment. <a href="https://core.telegram.org/bots/api#payments">More about payments »</a> */
210
+
public ?RefundedPayment$refunded_payment = null;
211
+
209
212
/** <em>Optional</em>. Service message: users were shared with the bot */
210
213
public ?UsersShared$users_shared = null;
211
214
@@ -339,6 +342,7 @@ class Message extends MaybeInaccessibleMessage
339
342
* @param MaybeInaccessibleMessage $pinned_message <em>Optional</em>. Specified message was pinned. Note that the Message object in this field will not contain further <em>reply_to_message</em> fields even if it itself is a reply.
340
343
* @param Invoice $invoice <em>Optional</em>. Message is an invoice for a <a href="https://core.telegram.org/bots/api#payments">payment</a>, information about the invoice. <a href="https://core.telegram.org/bots/api#payments">More about payments »</a>
341
344
* @param SuccessfulPayment $successful_payment <em>Optional</em>. Message is a service message about a successful payment, information about the payment. <a href="https://core.telegram.org/bots/api#payments">More about payments »</a>
345
+
* @param RefundedPayment $refunded_payment <em>Optional</em>. Message is a service message about a refunded payment, information about the payment. <a href="https://core.telegram.org/bots/api#payments">More about payments »</a>
342
346
* @param UsersShared $users_shared <em>Optional</em>. Service message: users were shared with the bot
343
347
* @param ChatShared $chat_shared <em>Optional</em>. Service message: a chat was shared with the bot
344
348
* @param string $connected_website <em>Optional</em>. The domain name of the website on which the user has logged in. <a href="https://core.telegram.org/widgets/login">More about Telegram Login »</a>
* This object contains basic information about a refunded payment.
13
+
*/
14
+
class RefundedPayment extends Type
15
+
{
16
+
/** Three-letter ISO 4217 <a href="https://core.telegram.org/bots/payments#supported-currencies">currency</a> code, or “XTR” for payments in <a href="https://t.me/BotNews/90">Telegram Stars</a>. Currently, always “XTR” */
17
+
publicstring$currency = 'XTR';
18
+
19
+
/** Total refunded price in the <em>smallest units</em> of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_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). */
* @param int $total_amount Total refunded price in the <em>smallest units</em> of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_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).
0 commit comments