8000 API 7.3 (#4243, #4248, #4247, #4242, #4246, #4260) · gtkacz/python-telegram-bot@805b7bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 805b7bf

Browse files
Bibo-Joshiharshil21aelkheir
authored
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com> Co-authored-by: Abdelrahman Elkheir <90580077+aelkheir@users.noreply.github.com>
1 parent f3bd0f1 commit 805b7bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2743
-172
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
:target: https://pypi.org/project/python-telegram-bot/
1515
:alt: Supported Python versions
1616

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

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

92-
All types and methods of the Telegram Bot API **7.2** are supported.
92+
All types and methods of the Telegram Bot API **7.3** are supported.
9393

9494
Installing
9595
==========

README_RAW.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
:target: https://pypi.org/project/python-telegram-bot-raw/
1515
:alt: Supported Python versions
1616

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

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

88-
All types and methods of the Telegram Bot API **7.2** are supported.
88+
All types and methods of the Telegram Bot API **7.3** are supported.
8989

9090
Installing
9191
==========

docs/source/telegram.at-tree.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ Available Types
2828
telegram.callbackquery
2929
telegram.chat
3030
telegram.chatadministratorrights
31+
telegram.chatbackground
32+
telegram.backgroundtype
33+
telegram.backgroundtypefill
34+
telegram.backgroundtypewallpaper
35+
telegram.backgroundtypepattern
36+
telegram.backgroundtypechattheme
37+
telegram.backgroundfill
38+
telegram.backgroundfillsolid
39+
telegram.backgroundfillgradient
40+
telegram.backgroundfillfreeformgradient
3141
telegram.chatboost
3242
telegram.chatboostadded
3343
telegram.chatboostremoved
@@ -36,6 +46,7 @@ Available Types
3646
telegram.chatboostsourcegiveaway
3747
telegram.chatboostsourcepremium
3848
telegram.chatboostupdated
49+
telegram.chatfullinfo
3950
telegram.chatinvitelink
4051
telegram.chatjoinrequest
4152
telegram.chatlocation
@@ -77,6 +88,7 @@ Available Types
7788
telegram.inputmediadocument
7889
telegram.inputmediaphoto
7990
telegram.inputmediavideo
91+
telegram.inputpolloption
8092
telegram.inputsticker
8193
telegram.keyboardbutton
8294
telegram.keyboardbuttonpolltype
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BackgroundFill
2+
==============
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.BackgroundFill
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BackgroundFillFreeformGradient
2+
==============================
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.BackgroundFillFreeformGradient
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BackgroundFillGradient
2+
======================
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.BackgroundFillGradient
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BackgroundFillSolid
2+
===================
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.BackgroundFillSolid
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BackgroundType
2+
==============
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.BackgroundType
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BackgroundTypeChatTheme
2+
=======================
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.BackgroundTypeChatTheme
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BackgroundTypeFill
2+
==================
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.BackgroundTypeFill
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BackgroundTypePattern
2+
=====================
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.BackgroundTypePattern
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BackgroundTypeWallpaper
2+
=======================
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.BackgroundTypeWallpaper
7+
:members:
8+
:show-inheritance:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ChatBackground
2+
==============
3+
4+
.. versionadded:: NEXT.VERSION
5+
6+
.. autoclass:: telegram.ChatBackground
7+
:members:
8+
:show-inheritance:

docs/source/telegram.chatfullinfo.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ChatFullInfo
2+
============
3+
4+
.. autoclass:: telegram.ChatFullInfo
5+
:members:
6+
:show-inheritance:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
InputPollOption
2+
===============
3+
4+
.. autoclass:: telegram.InputPollOption
5+
:members:
6+
:show-inheritance:

telegram/__init__.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
__all__ = (
2323
"Animation",
2424
"Audio",
25+
"BackgroundFill",
26+
"BackgroundFillFreeformGradient",
27+
"BackgroundFillGradient",
28+
"BackgroundFillSolid",
29+
"BackgroundType",
30+
"BackgroundTypeChatTheme",
31+
"BackgroundTypeFill",
32+
"BackgroundTypePattern",
33+
"BackgroundTypeWallpaper",
2534
"Birthdate",
2635
"Bot",
2736
"BotCommand",
@@ -46,6 +55,7 @@
4655
"CallbackQuery",
4756
"Chat",
4857
"ChatAdministratorRights",
58+
"ChatBackground",
4959
"ChatBoost",
5060
"ChatBoostAdded",
5161
"ChatBoostRemoved",
@@ -54,6 +64,7 @@
5464
"ChatBoostSourceGiveaway",
5565
"ChatBoostSourcePremium",
5666
"ChatBoostUpdated",
67+
"ChatFullInfo",
5768
"ChatInviteLink",
5869
"ChatJoinRequest",
5970
"ChatLocation",
@@ -131,6 +142,7 @@
131142
"InputMediaPhoto",
132143
"InputMediaVideo",
133144
"InputMessageContent",
145+
"InputPollOption",
134146
"InputSticker",
135147
"InputTextMessageContent",
136148
"InputVenueMessageContent",
@@ -258,6 +270,18 @@
258270
from ._callbackquery import CallbackQuery
259271
from ._chat import Chat
260272
from ._chatadministratorrights import ChatAdministratorRights
273+
from ._chatbackground import (
274+
BackgroundFill,
275+
BackgroundFillFreeformGradient,
276+
BackgroundFillGradient,
277+
BackgroundFillSolid,
278+
BackgroundType,
279+
BackgroundTypeChatTheme,
280+
BackgroundTypeFill,
281+
BackgroundTypePattern,
282+
BackgroundTypeWallpaper,
283+
ChatBackground,
284+
)
261285
from ._chatboost import (
262286
ChatBoost,
263287
ChatBoostAdded,
@@ -269,6 +293,7 @@
269293
ChatBoostUpdated,
270294
UserChatBoosts,
271295
)
296+
from ._chatfullinfo import ChatFullInfo
272297
from ._chatinvitelink import ChatInviteLink
273298
from ._chatjoinrequest import ChatJoinRequest
274299
from ._chatlocation import ChatLocation
@@ -403,7 +428,7 @@
403428
from ._payment.shippingoption import ShippingOption
404429
from ._payment.shippingquery import ShippingQuery
405430
from ._payment.successfulpayment import SuccessfulPayment
406-
from ._poll import Poll, PollAnswer, PollOption
431+
from ._poll import InputPollOption, Poll, PollAnswer, PollOption
407432
from ._proximityalerttriggered import ProximityAlertTriggered
408433
from ._reaction import ReactionCount, ReactionType, ReactionTypeCustomEmoji, ReactionTypeEmoji
409434
from ._reply import ExternalReplyInfo, ReplyParameters, TextQuote

telegram/_birthdate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
class Birthdate(TelegramObject):
2828
"""
29-
This object represents a user's birthday.
29+
This object describes the birthdate of a user.
3030
3131
Objects of this class are comparable in terms of equality. Two objects of this class are
3232
considered equal, if their :attr:`day`, and :attr:`month` are equal.

0 commit comments

Comments
 (0)
0