Page MenuHomePhabricator (Chris)

StarTransaction.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

StarTransaction.php

<?php
namespace Longman\TelegramBot\Entities;
use Longman\TelegramBot\Entities\User;
/**
* Class StarTransaction
*
* Describes a Telegram Star transaction.
*
* @link https://core.telegram.org/bots/api#startransaction
*
* @method string getId() Unique identifier of the transaction. Coincides with the identifer of the original transaction for refund transactions.
* @method int getAmount() Number of Telegram Stars transferred by the transaction
* @method int getDate() Date the transaction was created in Unix time
* @method User getSource() Optional. Source of the transaction. Can be a user, a bot, or an app. Null for refund transactions.
* @method User getReceiver() Optional. Receiver of the transaction. Can be a user, a bot, or an app. Null for refund transactions.
*
* @method $this setId(string $id) Unique identifier of the transaction. Coincides with the identifer of the original transaction for refund transactions.
* @method $this setAmount(int $amount) Number of Telegram Stars transferred by the transaction
* @method $this setDate(int $date) Date the transaction was created in Unix time
* @method $this setSource(User $source) Optional. Source of the transaction. Can be a user, a bot, or an app. Null for refund transactions.
* @method $this setReceiver(User $receiver) Optional. Receiver of the transaction. Can be a user, a bot, or an app. Null for refund transactions.
*/
class StarTransaction extends Entity
{
protected function subEntities(): array
{
return [
'source' => User::class,
'receiver' => User::class,
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 15, 7:03 AM (9 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
143569
Default Alt Text
StarTransaction.php (1 KB)

Event Timeline