Skip to content

Commit

Permalink
update: Sync to Bot API 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirHkrg committed Jan 1, 2025
1 parent ee8d4fe commit 1952e4c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
22 changes: 21 additions & 1 deletion src/Methode.php
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,29 @@ public function getAvailableGifts(): bool|array|string
return $this->endpoint('getAvailableGifts', get_defined_vars());
}

public function sendGift($user_id, $gift_id, $text = null, $text_parse_mode = null, $text_entities = null): bool|array|string
public function sendGift($user_id, $gift_id, $pay_for_upgrade = null, $text = null, $text_parse_mode = null, $text_entities = null): bool|array|string
{
return $this->endpoint('sendGift', get_defined_vars());
}

public function verifyUser($user_id, $custom_description = null): bool|array|string
{
return $this->endpoint('verifyUser', get_defined_vars());
}

public function verifyChat($chat_id, $custom_description = null): bool|array|string
{
return $this->endpoint('verifyChat', get_defined_vars());
}

public function removeUserVerification($user_id): bool|array|string
{
return $this->endpoint('removeUserVerification', get_defined_vars());
}

public function verifremoveChatVerificationyUser($chat_id): bool|array|string
{
return $this->endpoint('removeChatVerification', get_defined_vars());
}
}

1 change: 1 addition & 0 deletions src/Updates/Gift.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* @property int $id
* @property Sticker $sticker
* @property int $star_count
* @property int $upgrade_star_count
* @property int $total_count
* @property int $remaining_count
Expand Down
1 change: 0 additions & 1 deletion src/Updates/InlineQueryResultArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @property InputMessageContent $input_message_content
* @property InlineKeyboardMarkup $reply_markup
* @property string $url
* @property bool $hide_url
* @property string $description
* @property string $thumbnail_url
* @property int $thumbnail_width
Expand Down

0 comments on commit 1952e4c

Please sign in to comment.