Skip to content

Commit

Permalink
Added two new methods sendPaidMedia and getStarTransactions
Browse files Browse the repository at this point in the history
  • Loading branch information
httd1 committed Jul 12, 2024
1 parent b572eae commit 43338bd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,20 @@ public static function sendVideoNote (array $data) :array
{
return self::call (__FUNCTION__, $data);
}

/**
* Use this method to send paid media to channel chats.
*
* @see https://core.telegram.org/bots/api#sendpaidmedia
*
* @param array $data
*
* @return array
*/
public static function sendPaidMedia (array $data): array
{
return self::call(__FUNCTION__, $data);
}

/**
* Use this method to send a group of photos, videos, documents or audios as an album.
Expand Down Expand Up @@ -1639,6 +1653,20 @@ public static function answerPreCheckoutQuery (array $data) :array
{
return self::call (__FUNCTION__, $data);
}

/**
* Returns the bot's Telegram Star transactions in chronological order.
*
* @see https://core.telegram.org/bots/api#getstartransactions
*
* @param array $data
*
* @return array
*/
public static function getStarTransactions (array $data): array
{
return self::call(__FUNCTION__, $data);
}

/**
* Use this method to refunds a successful payment in [Telegram Stars](https://t.me/BotNews/90).
Expand Down

0 comments on commit 43338bd

Please sign in to comment.