Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix typos in docstrings and comments
  • Loading branch information
MsfPablo authored and harshil21 committed Sep 1, 2026
commit 300530e4d6ce360b04a08db664803feeb2daea81
2 changes: 1 addition & 1 deletion src/telegram/_messageorigin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#
# You should have received a copy of the GNU Lesser Public License
# along with this program. If not, see [http://www.gnu.org/licenses/].
"""This module contains the classes that represent Telegram MessageOigin."""
"""This module contains the classes that represent Telegram MessageOrigin."""

import datetime as dtm
from typing import ClassVar, Final
Expand Down
2 changes: 1 addition & 1 deletion src/telegram/_poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class PollAnswer(TelegramObject):
20.5 as the latter one became optional.

.. versionchanged:: 20.6
Backward compatiblity for changed order of :paramref:`option_ids` and :paramref:`user`
Backward compatibility for changed order of :paramref:`option_ids` and :paramref:`user`
was removed.

Args:
Expand Down
2 changes: 1 addition & 1 deletion src/telegram/_suggestedpost.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

class SuggestedPostPrice(TelegramObject):
"""
Desribes the price of a suggested post.
Describes the price of a suggested post.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`currency` and :attr:`amount` are equal.
Expand Down
8 changes: 4 additions & 4 deletions src/telegram/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,12 +788,12 @@ class BusinessLimit(IntEnum):
:meth:`telegram.Bot.get_user_gifts`.
"""
MIN_STAR_COUNT = 1
""":obj:`int`: Minimum number of Telegram Stars to be transfered. Relevant for
""":obj:`int`: Minimum number of Telegram Stars to be transferred. Relevant for
:paramref:`~telegram.Bot.transfer_business_account_stars.star_count` of
:meth:`telegram.Bot.transfer_business_account_stars`.
"""
MAX_STAR_COUNT = 10000
""":obj:`int`: Maximum number of Telegram Stars to be transfered. Relevant for
""":obj:`int`: Maximum number of Telegram Stars to be transferred. Relevant for
:paramref:`~telegram.Bot.transfer_business_account_stars.star_count` of
:meth:`telegram.Bot.transfer_business_account_stars`.
"""
Expand Down Expand Up @@ -3610,7 +3610,7 @@ class UniqueGiftInfoOrigin(StringEnum):
.. versionadded:: 22.3
"""
TRANSFER = "transfer"
""":obj:`str` gift transfered"""
""":obj:`str` gift transferred"""
UPGRADE = "upgrade"
""":obj:`str` gift upgraded"""

Expand Down Expand Up @@ -3834,7 +3834,7 @@ class InvoiceLimit(IntEnum):
.. versionadded:: 21.8
"""
SUBSCRIPTION_MAX_PRICE = 10000
""":obj:`int`: The maximum price of a subscription created wtih
""":obj:`int`: The maximum price of a subscription created with
:meth:`telegram.Bot.create_invoice_link`.

.. versionadded:: 21.9
Expand Down
2 changes: 1 addition & 1 deletion src/telegram/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def __init__(self, retry_after: TimePeriod):

@property
def retry_after(self) -> int | dtm.timedelta: # noqa: D102
# Diableing D102 because docstring for `retry_after` is present at the class's level
# Disabling D102 because docstring for `retry_after` is present at the class's level
return get_timedelta_value( # type: ignore[return-value]
self._retry_after, attribute="retry_after"
)
Expand Down
Loading