Skip to content

Commit

Permalink
Merge pull request #2435 from fregire/fix/params_typo
Browse files Browse the repository at this point in the history
Fixed "subscription_period" docstring
  • Loading branch information
Badiboy authored Dec 10, 2024
2 parents 3987372 + 4cc438a commit 758da16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5474,7 +5474,7 @@ def create_invoice_link(self,
(e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)
:type prices: :obj:`list` of :obj:`types.LabeledPrice`
:subscription_period: The number of seconds the subscription will be active for before the next payment.
:param subscription_period: The number of seconds the subscription will be active for before the next payment.
The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always
be 2592000 (30 days) if specified.
:type subscription_period: :obj:`int`
Expand Down
2 changes: 1 addition & 1 deletion telebot/async_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6922,7 +6922,7 @@ async def create_invoice_link(self,
(e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)
:type prices: :obj:`list` of :obj:`types.LabeledPrice`
:subscription_period: The number of seconds the subscription will be active for before the next payment.
:param subscription_period: The number of seconds the subscription will be active for before the next payment.
The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always
be 2592000 (30 days) if specified.
:type subscription_period: :obj:`int`
Expand Down

0 comments on commit 758da16

Please sign in to comment.