Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot API 8.0 #73

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Telegram/TransactionPartnerUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ class TransactionPartnerUser extends TransactionPartner
public ?string $paid_media_payload = null;

/** <em>Optional</em>. The gift sent to the user by the bot */
public ?string $gift = null;
public ?Gift $gift = null;

/**
* @param User $user Information about the user
* @param string $invoice_payload <em>Optional</em>. Bot-specified invoice payload
* @param int $subscription_period <em>Optional</em>. The duration of the paid subscription
* @param PaidMedia[] $paid_media <em>Optional</em>. Information about the paid media bought by the user
* @param string $paid_media_payload <em>Optional</em>. Bot-specified paid media payload
* @param string $gift <em>Optional</em>. The gift sent to the user by the bot
* @param Gift $gift <em>Optional</em>. The gift sent to the user by the bot
*/
public static function make(
User $user,
?string $invoice_payload = null,
?int $subscription_period = null,
?array $paid_media = null,
?string $paid_media_payload = null,
?string $gift = null,
?Gift $gift = null,
): static {
return new static([
'user' => $user,
Expand Down