Skip to content

Commit

Permalink
API 7.3 (#4243, #4248, #4247, #4242, #4246, #4260)
Browse files Browse the repository at this point in the history
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com>
  • Loading branch information
3 people committed May 20, 2024
1 parent f3bd0f1 commit 805b7bf
Show file tree
Hide file tree
Showing 55 changed files with 2,743 additions and 172 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
:target: https://pypi.org/project/python-telegram-bot/
:alt: Supported Python versions

.. image:: https://img.shields.io/badge/Bot%20API-7.2-blue?logo=telegram
.. image:: https://img.shields.io/badge/Bot%20API-7.3-blue?logo=telegram
:target: https://core.telegram.org/bots/api-changelog
:alt: Supported Bot API versions
:alt: Supported Bot API version

.. image:: https://img.shields.io/pypi/dm/python-telegram-bot
:target: https://pypistats.org/packages/python-telegram-bot
Expand Down Expand Up @@ -89,7 +89,7 @@ Installing both ``python-telegram-bot`` and ``python-telegram-bot-raw`` in conju
Telegram API support
====================

All types and methods of the Telegram Bot API **7.2** are supported.
All types and methods of the Telegram Bot API **7.3** are supported.

Installing
==========
Expand Down
6 changes: 3 additions & 3 deletions README_RAW.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
:target: https://pypi.org/project/python-telegram-bot-raw/
:alt: Supported Python versions

.. image:: https://img.shields.io/badge/Bot%20API-7.2-blue?logo=telegram
.. image:: https://img.shields.io/badge/Bot%20API-7.3-blue?logo=telegram
:target: https://core.telegram.org/bots/api-changelog
:alt: Supported Bot API versions
:alt: Supported Bot API version

.. image:: https://img.shields.io/pypi/dm/python-telegram-bot-raw
:target: https://pypistats.org/packages/python-telegram-bot-raw
Expand Down Expand Up @@ -85,7 +85,7 @@ Installing both ``python-telegram-bot`` and ``python-telegram-bot-raw`` in conju
Telegram API support
====================

All types and methods of the Telegram Bot API **7.2** are supported.
All types and methods of the Telegram Bot API **7.3** are supported.

Installing
==========
Expand Down
12 changes: 12 additions & 0 deletions docs/source/telegram.at-tree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ Available Types
telegram.callbackquery
telegram.chat
telegram.chatadministratorrights
telegram.chatbackground
telegram.backgroundtype
telegram.backgroundtypefill
telegram.backgroundtypewallpaper
telegram.backgroundtypepattern
telegram.backgroundtypechattheme
telegram.backgroundfill
telegram.backgroundfillsolid
telegram.backgroundfillgradient
telegram.backgroundfillfreeformgradient
telegram.chatboost
telegram.chatboostadded
telegram.chatboostremoved
Expand All @@ -36,6 +46,7 @@ Available Types
telegram.chatboostsourcegiveaway
telegram.chatboostsourcepremium
telegram.chatboostupdated
telegram.chatfullinfo
telegram.chatinvitelink
telegram.chatjoinrequest
telegram.chatlocation
Expand Down Expand Up @@ -77,6 +88,7 @@ Available Types
telegram.inputmediadocument
telegram.inputmediaphoto
telegram.inputmediavideo
telegram.inputpolloption
telegram.inputsticker
telegram.keyboardbutton
telegram.keyboardbuttonpolltype
Expand Down
8 changes: 8 additions & 0 deletions docs/source/telegram.backgroundfill.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BackgroundFill
==============

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.BackgroundFill
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.backgroundfillfreeformgradient.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BackgroundFillFreeformGradient
==============================

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.BackgroundFillFreeformGradient
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.backgroundfillgradient.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BackgroundFillGradient
======================

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.BackgroundFillGradient
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.backgroundfillsolid.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BackgroundFillSolid
===================

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.BackgroundFillSolid
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.backgroundtype.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BackgroundType
==============

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.BackgroundType
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.backgroundtypechattheme.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BackgroundTypeChatTheme
=======================

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.BackgroundTypeChatTheme
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.backgroundtypefill.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BackgroundTypeFill
==================

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.BackgroundTypeFill
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.backgroundtypepattern.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BackgroundTypePattern
=====================

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.BackgroundTypePattern
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.backgroundtypewallpaper.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BackgroundTypeWallpaper
=======================

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.BackgroundTypeWallpaper
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/telegram.chatbackground.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ChatBackground
==============

.. versionadded:: NEXT.VERSION

.. autoclass:: telegram.ChatBackground
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.chatfullinfo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ChatFullInfo
============

.. autoclass:: telegram.ChatFullInfo
:members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/source/telegram.inputpolloption.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
InputPollOption
===============

.. autoclass:: telegram.InputPollOption
:members:
:show-inheritance:
27 changes: 26 additions & 1 deletion telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
__all__ = (
"Animation",
"Audio",
"BackgroundFill",
"BackgroundFillFreeformGradient",
"BackgroundFillGradient",
"BackgroundFillSolid",
"BackgroundType",
"BackgroundTypeChatTheme",
"BackgroundTypeFill",
"BackgroundTypePattern",
"BackgroundTypeWallpaper",
"Birthdate",
"Bot",
"BotCommand",
Expand All @@ -46,6 +55,7 @@
"CallbackQuery",
"Chat",
"ChatAdministratorRights",
"ChatBackground",
"ChatBoost",
"ChatBoostAdded",
"ChatBoostRemoved",
Expand All @@ -54,6 +64,7 @@
"ChatBoostSourceGiveaway",
"ChatBoostSourcePremium",
"ChatBoostUpdated",
"ChatFullInfo",
"ChatInviteLink",
"ChatJoinRequest",
"ChatLocation",
Expand Down Expand Up @@ -131,6 +142,7 @@
"InputMediaPhoto",
"InputMediaVideo",
"InputMessageContent",
"InputPollOption",
"InputSticker",
"InputTextMessageContent",
"InputVenueMessageContent",
Expand Down Expand Up @@ -258,6 +270,18 @@
from ._callbackquery import CallbackQuery
from ._chat import Chat
from ._chatadministratorrights import ChatAdministratorRights
from ._chatbackground import (
BackgroundFill,
BackgroundFillFreeformGradient,
BackgroundFillGradient,
BackgroundFillSolid,
BackgroundType,
BackgroundTypeChatTheme,
BackgroundTypeFill,
BackgroundTypePattern,
BackgroundTypeWallpaper,
ChatBackground,
)
from ._chatboost import (
ChatBoost,
ChatBoostAdded,
Expand All @@ -269,6 +293,7 @@
ChatBoostUpdated,
UserChatBoosts,
)
from ._chatfullinfo import ChatFullInfo
from ._chatinvitelink import ChatInviteLink
from ._chatjoinrequest import ChatJoinRequest
from ._chatlocation import ChatLocation
Expand Down Expand Up @@ -403,7 +428,7 @@
from ._payment.shippingoption import ShippingOption
from ._payment.shippingquery import ShippingQuery
from ._payment.successfulpayment import SuccessfulPayment
from ._poll import Poll, PollAnswer, PollOption
from ._poll import InputPollOption, Poll, PollAnswer, PollOption
from ._proximityalerttriggered import ProximityAlertTriggered
from ._reaction import ReactionCount, ReactionType, ReactionTypeCustomEmoji, ReactionTypeEmoji
from ._reply import ExternalReplyInfo, ReplyParameters, TextQuote
Expand Down
2 changes: 1 addition & 1 deletion telegram/_birthdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class Birthdate(TelegramObject):
"""
This object represents a user's birthday.
This object describes the birthdate of a user.
Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`day`, and :attr:`month` are equal.
Expand Down

0 comments on commit 805b7bf

Please sign in to comment.