Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/unreleased/5078.FoNwUYLbXQFRebTFhR6UPn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ features = "Full Support for Bot API 9.3"

pull_requests = [
{ uid = "5078", author_uid = "aelkheir", closes_threads = ["5077"] },
{ uid = "5085", author_uids = ["Bibo-Joshi"] },
]
4 changes: 3 additions & 1 deletion src/telegram/_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5905,7 +5905,9 @@ async def promote_chat_member(
can_invite_users (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
invite new users to the chat.
can_restrict_members (:obj:`bool`, optional): Pass :obj:`True`, if the administrator
can restrict, ban or unban chat members, or access supergroup statistics.
can restrict, ban or unban chat members, or access supergroup statistics. For
backward compatibility, defaults to :obj:`True` for promotions of channel
administrators
can_pin_messages (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
pin messages, for supergroups only.
can_promote_members (:obj:`bool`, optional): Pass :obj:`True`, if the administrator can
Expand Down
4 changes: 3 additions & 1 deletion src/telegram/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3510,14 +3510,16 @@ class InvoiceLimit(IntEnum):

.. versionadded:: 21.6
"""
MAX_STAR_COUNT = 10000
MAX_STAR_COUNT = 25000
""":obj:`int`: Maximum amount of starts that must be paid to buy access to a paid media
passed as :paramref:`~telegram.Bot.send_paid_media.star_count` parameter of
:meth:`telegram.Bot.send_paid_media`.

.. versionadded:: 21.6
.. versionchanged:: 22.1
Bot API 9.0 changed the value to 10000.
.. versionchanged:: NEXT.VERSION
Bot API 9.3 changed the value to 25000.
"""
SUBSCRIPTION_PERIOD = dtm.timedelta(days=30).total_seconds()
""":obj:`int`: The period of time for which the subscription is active before
Expand Down
Loading