8000 API 7.3 by Bibo-Joshi · Pull Request #4243 · python-telegram-bot/python-telegram-bot · GitHub
[go: up one dir, main page]

Skip to content

API 7.3 #4243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 20, 2024
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
< F438 td id="diff-a28abe0704b0440295b2d6b9fe8d5c04f38b6aa548709062602ffa1dd4f18304R93" data-line-number="93" class="blob-num blob-num-context js-linkable-line-number js-blob-rnum">
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
Loading
Loading
0