diff --git a/.butcher/methods/createInvoiceLink/entity.json b/.butcher/methods/createInvoiceLink/entity.json
index 0bd239b0..b0f451b1 100644
--- a/.butcher/methods/createInvoiceLink/entity.json
+++ b/.butcher/methods/createInvoiceLink/entity.json
@@ -30,9 +30,9 @@
{
"type": "String",
"required": true,
- "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.",
- "html_description": "
Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. | ",
- "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.\n",
+ "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.",
+ "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. | ",
+ "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.\n",
"name": "payload"
},
{
diff --git a/.butcher/methods/sendInvoice/entity.json b/.butcher/methods/sendInvoice/entity.json
index 23eaaca8..e44939ff 100644
--- a/.butcher/methods/sendInvoice/entity.json
+++ b/.butcher/methods/sendInvoice/entity.json
@@ -46,9 +46,9 @@
{
"type": "String",
"required": true,
- "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.",
- "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. | ",
- "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.\n",
+ "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.",
+ "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. | ",
+ "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.\n",
"name": "payload"
},
{
diff --git a/.butcher/schema/schema.json b/.butcher/schema/schema.json
index 9d08a7eb..0bbd1b0a 100644
--- a/.butcher/schema/schema.json
+++ b/.butcher/schema/schema.json
@@ -5129,6 +5129,22 @@
"rst_description": "*Optional*. Number of pending join requests created using this link\n",
"name": "pending_join_request_count",
"required": false
+ },
+ {
+ "type": "Integer",
+ "description": "The number of seconds the subscription will be active for before the next payment",
+ "html_description": "Optional. The number of seconds the subscription will be active for before the next payment | ",
+ "rst_description": "*Optional*. The number of seconds the subscription will be active for before the next payment\n",
+ "name": "subscription_period",
+ "required": false
+ },
+ {
+ "type": "Integer",
+ "description": "The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link",
+ "html_description": "Optional. The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link | ",
+ "rst_description": "*Optional*. The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link\n",
+ "name": "subscription_price",
+ "required": false
}
],
"category": "types"
@@ -15366,9 +15382,9 @@
},
{
"type": "String",
- "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.",
- "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. | ",
- "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.\n",
+ "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.",
+ "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. | ",
+ "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.\n",
"name": "payload",
"required": true
},
@@ -15654,9 +15670,9 @@
{
"type": "String",
"required": true,
- "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.",
- "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. | ",
- "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.\n",
+ "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.",
+ "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. | ",
+ "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.\n",
"name": "payload"
},
{
@@ -15872,9 +15888,9 @@
{
"type": "String",
"required": true,
- "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.",
- "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. | ",
- "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.\n",
+ "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.",
+ "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. | ",
+ "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.\n",
"name": "payload"
},
{
diff --git a/.butcher/types/ChatInviteLink/entity.json b/.butcher/types/ChatInviteLink/entity.json
index d2441682..c656d1a7 100644
--- a/.butcher/types/ChatInviteLink/entity.json
+++ b/.butcher/types/ChatInviteLink/entity.json
@@ -82,6 +82,22 @@
"rst_description": "*Optional*. Number of pending join requests created using this link\n",
"name": "pending_join_request_count",
"required": false
+ },
+ {
+ "type": "Integer",
+ "description": "The number of seconds the subscription will be active for before the next payment",
+ "html_description": "Optional. The number of seconds the subscription will be active for before the next payment | ",
+ "rst_description": "*Optional*. The number of seconds the subscription will be active for before the next payment\n",
+ "name": "subscription_period",
+ "required": false
+ },
+ {
+ "type": "Integer",
+ "description": "The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link",
+ "html_description": "Optional. The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link | ",
+ "rst_description": "*Optional*. The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link\n",
+ "name": "subscription_price",
+ "required": false
}
],
"category": "types"
diff --git a/.butcher/types/InputInvoiceMessageContent/entity.json b/.butcher/types/InputInvoiceMessageContent/entity.json
index bed9e656..76d2f39b 100644
--- a/.butcher/types/InputInvoiceMessageContent/entity.json
+++ b/.butcher/types/InputInvoiceMessageContent/entity.json
@@ -29,9 +29,9 @@
},
{
"type": "String",
- "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.",
- "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. | ",
- "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.\n",
+ "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.",
+ "html_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes. | ",
+ "rst_description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.\n",
"name": "payload",
"required": true
},
diff --git a/aiogram/client/bot.py b/aiogram/client/bot.py
index 4b83e419..498fe3c9 100644
--- a/aiogram/client/bot.py
+++ b/aiogram/client/bot.py
@@ -1000,7 +1000,7 @@ class Bot:
:param title: Product name, 1-32 characters
:param description: Product description, 1-255 characters
- :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
+ :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
:param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_.
:param 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 provider_token: Payment provider token, obtained via `@BotFather `_. Pass an empty string for payments in `Telegram Stars `_.
@@ -2669,7 +2669,7 @@ class Bot:
:param chat_id: Unique identifier for the target chat or username of the target channel (in the format :code:`@channelusername`)
:param title: Product name, 1-32 characters
:param description: Product description, 1-255 characters
- :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
+ :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
:param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_.
:param 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 message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
diff --git a/aiogram/methods/create_invoice_link.py b/aiogram/methods/create_invoice_link.py
index 2068f759..a736aed6 100644
--- a/aiogram/methods/create_invoice_link.py
+++ b/aiogram/methods/create_invoice_link.py
@@ -21,7 +21,7 @@ class CreateInvoiceLink(TelegramMethod[str]):
description: str
"""Product description, 1-255 characters"""
payload: str
- """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."""
currency: str
"""Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_."""
prices: List[LabeledPrice]
diff --git a/aiogram/methods/send_invoice.py b/aiogram/methods/send_invoice.py
index 108219ef..f5b01d8d 100644
--- a/aiogram/methods/send_invoice.py
+++ b/aiogram/methods/send_invoice.py
@@ -26,7 +26,7 @@ class SendInvoice(TelegramMethod[Message]):
description: str
"""Product description, 1-255 characters"""
payload: str
- """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."""
currency: str
"""Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_."""
prices: List[LabeledPrice]
diff --git a/aiogram/types/chat_invite_link.py b/aiogram/types/chat_invite_link.py
index 7817c23d..be495a5b 100644
--- a/aiogram/types/chat_invite_link.py
+++ b/aiogram/types/chat_invite_link.py
@@ -34,6 +34,10 @@ class ChatInviteLink(TelegramObject):
"""*Optional*. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999"""
pending_join_request_count: Optional[int] = None
"""*Optional*. Number of pending join requests created using this link"""
+ subscription_period: Optional[int] = None
+ """*Optional*. The number of seconds the subscription will be active for before the next payment"""
+ subscription_price: Optional[int] = None
+ """*Optional*. The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link"""
if TYPE_CHECKING:
# DO NOT EDIT MANUALLY!!!
@@ -51,6 +55,8 @@ class ChatInviteLink(TelegramObject):
expire_date: Optional[DateTime] = None,
member_limit: Optional[int] = None,
pending_join_request_count: Optional[int] = None,
+ subscription_period: Optional[int] = None,
+ subscription_price: Optional[int] = None,
**__pydantic_kwargs: Any,
) -> None:
# DO NOT EDIT MANUALLY!!!
@@ -67,5 +73,7 @@ class ChatInviteLink(TelegramObject):
expire_date=expire_date,
member_limit=member_limit,
pending_join_request_count=pending_join_request_count,
+ subscription_period=subscription_period,
+ subscription_price=subscription_price,
**__pydantic_kwargs,
)
diff --git a/aiogram/types/chat_join_request.py b/aiogram/types/chat_join_request.py
index 4a128f17..6b900611 100644
--- a/aiogram/types/chat_join_request.py
+++ b/aiogram/types/chat_join_request.py
@@ -1074,7 +1074,7 @@ class ChatJoinRequest(TelegramObject):
:param title: Product name, 1-32 characters
:param description: Product description, 1-255 characters
- :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
+ :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
:param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_.
:param 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 message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
@@ -1187,7 +1187,7 @@ class ChatJoinRequest(TelegramObject):
:param title: Product name, 1-32 characters
:param description: Product description, 1-255 characters
- :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
+ :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
:param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_.
:param 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 message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
diff --git a/aiogram/types/chat_member_updated.py b/aiogram/types/chat_member_updated.py
index 48c3e9db..233e1e6b 100644
--- a/aiogram/types/chat_member_updated.py
+++ b/aiogram/types/chat_member_updated.py
@@ -621,7 +621,7 @@ class ChatMemberUpdated(TelegramObject):
:param title: Product name, 1-32 characters
:param description: Product description, 1-255 characters
- :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
+ :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
:param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_.
:param 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 message_thread_id: Unique identifier for the target message thread (topic) of the forum; for forum supergroups only
diff --git a/aiogram/types/input_invoice_message_content.py b/aiogram/types/input_invoice_message_content.py
index 0dbb6d27..10c6a1aa 100644
--- a/aiogram/types/input_invoice_message_content.py
+++ b/aiogram/types/input_invoice_message_content.py
@@ -20,7 +20,7 @@ class InputInvoiceMessageContent(InputMessageContent):
description: str
"""Product description, 1-255 characters"""
payload: str
- """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."""
currency: str
"""Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_."""
prices: List[LabeledPrice]
diff --git a/aiogram/types/message.py b/aiogram/types/message.py
index 2c1fa627..ed6180f2 100644
--- a/aiogram/types/message.py
+++ b/aiogram/types/message.py
@@ -1467,7 +1467,7 @@ class Message(MaybeInaccessibleMessage):
:param title: Product name, 1-32 characters
:param description: Product description, 1-255 characters
- :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
+ :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
:param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_.
:param 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 provider_token: Payment provider token, obtained via `@BotFather `_. Pass an empty string for payments in `Telegram Stars `_.
@@ -1582,7 +1582,7 @@ class Message(MaybeInaccessibleMessage):
:param title: Product name, 1-32 characters
:param description: Product description, 1-255 characters
- :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.
+ :param payload: Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
:param currency: Three-letter ISO 4217 currency code, see `more on currencies `_. Pass 'XTR' for payments in `Telegram Stars `_.
:param 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 provider_token: Payment provider token, obtained via `@BotFather `_. Pass an empty string for payments in `Telegram Stars `_.