From 7f848f58e80c18e2d1db1cde046133a13af74f8d Mon Sep 17 00:00:00 2001 From: TiiFuchs <1958744+TiiFuchs@users.noreply.github.com> Date: Fri, 30 Aug 2024 09:17:50 +0000 Subject: [PATCH] Update code to reflect latest changes to the Bot API documentation --- src/Layers/Generated.php | 4 ++-- src/Telegram/InputInvoiceMessageContent.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Layers/Generated.php b/src/Layers/Generated.php index 89b711c..02e05b3 100644 --- a/src/Layers/Generated.php +++ b/src/Layers/Generated.php @@ -2269,7 +2269,7 @@ public function answerWebAppQuery(string $web_app_query_id, InlineQueryResult $r * @param int|string $chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername) * @param string $title Product name, 1-32 characters * @param string $description Product description, 1-255 characters - * @param string $payload Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. + * @param string $payload Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. * @param string $currency Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars. * @param LabeledPrice[] $prices Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars. * @param int $message_thread_id Unique identifier for the target message thread (topic) of the forum; for forum supergroups only @@ -2335,7 +2335,7 @@ public function sendInvoice( * * @param string $title Product name, 1-32 characters * @param string $description Product description, 1-255 characters - * @param string $payload Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. + * @param string $payload Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. * @param string $currency Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars. * @param LabeledPrice[] $prices Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars. * @param string $provider_token Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars. diff --git a/src/Telegram/InputInvoiceMessageContent.php b/src/Telegram/InputInvoiceMessageContent.php index e38f5f1..1a60f7a 100644 --- a/src/Telegram/InputInvoiceMessageContent.php +++ b/src/Telegram/InputInvoiceMessageContent.php @@ -17,7 +17,7 @@ class InputInvoiceMessageContent extends InputMessageContent /** Product description, 1-255 characters */ public string $description; - /** Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. */ + /** Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. */ public string $payload; /** Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars. */ @@ -82,7 +82,7 @@ class InputInvoiceMessageContent extends InputMessageContent /** * @param string $title Product name, 1-32 characters * @param string $description Product description, 1-255 characters - * @param string $payload Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. + * @param string $payload Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. * @param string $currency Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars. * @param LabeledPrice[] $prices Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars. * @param string $provider_token Optional. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.