From 43338bd36f9e0b5cece216cd9ebc97a079911448 Mon Sep 17 00:00:00 2001 From: httd1 <23122559+httd1@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:46:27 -0300 Subject: [PATCH] Added two new methods sendPaidMedia and getStarTransactions --- src/Methods.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/Methods.php b/src/Methods.php index 8d78df4..73e9361 100644 --- a/src/Methods.php +++ b/src/Methods.php @@ -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. @@ -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).