Skip to content

API 7.5 #4312

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 9 commits into from
Jul 1, 2024
Merged

API 7.5 #4312

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
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
:target: https://pypi.org/project/python-telegram-bot/
:alt: Supported Python versions

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

Expand Down Expand Up @@ -79,7 +79,7 @@ make the development of bots easy and straightforward. These classes are contain
Telegram API support
====================

All types and methods of the Telegram Bot API **7.4** are supported.
All types and methods of the Telegram Bot API **7.5** are supported.

Installing
==========
Expand Down
2 changes: 2 additions & 0 deletions docs/source/inclusions/bot_methods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@
- Used for getting basic info about a file
* - :meth:`~telegram.Bot.get_me`
- Used for getting basic information about the bot
* - :meth:`~telegram.Bot.get_star_transactions`
- Used for obtaining the bot's Telegram Stars transactions
* - :meth:`~telegram.Bot.refund_star_payment`
- Used for refunding a payment in Telegram Stars

Expand Down
10 changes: 10 additions & 0 deletions docs/source/telegram.at-tree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,22 @@ Available Types
telegram.replykeyboardmarkup
telegram.replykeyboardremove
telegram.replyparameters
telegram.revenuewithdrawalstate
telegram.revenuewithdrawalstatefailed
telegram.revenuewithdrawalstatepending
telegram.revenuewithdrawalstatesucceeded
telegram.sentwebappmessage
telegram.shareduser
telegram.startransaction
telegram.startransactions
telegram.story
telegram.switchinlinequerychosenchat
telegram.telegramobject
telegram.textquote
telegram.transactionpartner
telegram.transactionpartnerfragment
telegram.transactionpartnerother
telegram.transactionpartneruser
telegram.update
telegram.user
telegram.userchatboosts
Expand Down
7 changes: 7 additions & 0 deletions docs/source/telegram.revenuewithdrawalstate.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RevenueWithdrawalState
======================

.. autoclass:: telegram.RevenueWithdrawalState
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.revenuewithdrawalstatefailed.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RevenueWithdrawalStateFailed
=============================

.. autoclass:: telegram.RevenueWithdrawalStateFailed
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.revenuewithdrawalstatepending.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RevenueWithdrawalStatePending
=============================

.. autoclass:: telegram.RevenueWithdrawalStatePending
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.revenuewithdrawalstatesucceeded.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RevenueWithdrawalStateSucceeded
===============================

.. autoclass:: telegram.RevenueWithdrawalStateSucceeded
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.startransaction.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
StarTransaction
===============

.. autoclass:: telegram.StarTransaction
:members:
:show-inheritance:
:inherited-members: TelegramObject
8 changes: 8 additions & 0 deletions docs/source/telegram.startransactions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
StarTransactions
================

.. autoclass:: telegram.StarTransactions
:members:
:show-inheritance:
:inherited-members: TelegramObject

7 changes: 7 additions & 0 deletions docs/source/telegram.transactionpartner.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TransactionPartner
==================

.. autoclass:: telegram.TransactionPartner
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.transactionpartnerfragment.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TransactionPartnerFragment
==========================

.. autoclass:: telegram.TransactionPartnerFragment
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.transactionpartnerother.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TransactionPartnerOther
=======================

.. autoclass:: telegram.TransactionPartnerOther
:members:
:show-inheritance:
:inherited-members: TelegramObject
7 changes: 7 additions & 0 deletions docs/source/telegram.transactionpartneruser.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TransactionPartnerUser
======================

.. autoclass:: telegram.TransactionPartnerUser
:members:
:show-inheritance:
:inherited-members: TelegramObject
4 changes: 4 additions & 0 deletions docs/substitutions/global.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

.. |editreplymarkup| replace:: It is currently only possible to edit messages without :attr:`telegram.Message.reply_markup` or with inline keyboards.

.. |bcid_edit_time| replace:: Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within *48 hours* from the time they were sent.

.. |toapikwargsbase| replace:: These arguments are also considered by :meth:`~telegram.TelegramObject.to_dict` and :meth:`~telegram.TelegramObject.to_json`, i.e. when passing objects to Telegram. Passing them to Telegram is however not guaranteed to work for all kinds of objects, e.g. this will fail for objects that can not directly be JSON serialized.

.. |toapikwargsarg| replace:: Arbitrary keyword arguments. Can be used to store data for which there are no dedicated attributes. |toapikwargsbase|
Expand Down Expand Up @@ -82,6 +84,8 @@

.. |business_id_str| replace:: Unique identifier of the business connection on behalf of which the message will be sent.

.. |business_id_str_edit| replace:: Unique identifier of the business connection on behalf of which the message to be edited was sent

.. |message_effect_id| replace:: Unique identifier of the message effect to be added to the message; for private chats only.

.. |show_cap_above_med| replace:: :obj:`True`, if the caption must be shown above the message media.
Expand Down
22 changes: 22 additions & 0 deletions telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,30 @@
"ReplyKeyboardRemove",
"ReplyParameters",
"ResidentialAddress",
"RevenueWithdrawalState",
"RevenueWithdrawalStateFailed",
"RevenueWithdrawalStatePending",
"RevenueWithdrawalStateSucceeded",
"SecureData",
"SecureValue",
"SentWebAppMessage",
"SharedUser",
"ShippingAddress",
"ShippingOption",
"ShippingQuery",
"StarTransaction",
"StarTransactions",
"Sticker",
"StickerSet",
"Story",
"SuccessfulPayment",
"SwitchInlineQueryChosenChat",
"TelegramObject",
"TextQuote",
"TransactionPartner",
"TransactionPartnerFragment",
"TransactionPartnerOther",
"TransactionPartnerUser",
"Update",
"User",
"UserChatBoosts",
Expand Down Expand Up @@ -435,6 +445,18 @@
from ._replykeyboardremove import ReplyKeyboardRemove
from ._sentwebappmessage import SentWebAppMessage
from ._shared import ChatShared, SharedUser, UsersShared
from ._stars import (
RevenueWithdrawalState,
RevenueWithdrawalStateFailed,
RevenueWithdrawalStatePending,
RevenueWithdrawalStateSucceeded,
StarTransaction,
StarTransactions,
TransactionPartner,
TransactionPartnerFragment,
TransactionPartnerOther,
TransactionPartnerUser,
)
from ._story import Story
from ._switchinlinequerychosenchat import SwitchInlineQueryChosenChat
from ._telegramobject import TelegramObject
Expand Down
Loading
Loading