Thanks to visit codestin.com
Credit goes to github.com

Skip to content

API 7.6 #4333

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

API 7.6 #4333

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.5-blue?logo=telegram
.. image:: https://img.shields.io/badge/Bot%20API-7.6-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.5** are supported.
All types and methods of the Telegram Bot API **7.6** 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 @@ -33,6 +33,8 @@
- Used for sending media grouped together
* - :meth:`~telegram.Bot.send_message`
- Used for sending text messages
* - :meth:`~telegram.Bot.send_paid_media`
- Used for sending paid media to channels
* - :meth:`~telegram.Bot.send_photo`
- Used for sending photos
* - :meth:`~telegram.Bot.send_poll`
Expand Down
18 changes: 8 additions & 10 deletions docs/source/telegram.at-tree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ Available Types
telegram.inputmediadocument
telegram.inputmediaphoto
telegram.inputmediavideo
telegram.inputpaidmedia
telegram.inputpaidmediaphoto
telegram.inputpaidmediavideo
telegram.inputpolloption
telegram.inputsticker
telegram.keyboardbutton
Expand All @@ -113,6 +116,11 @@ Available Types
telegram.messageoriginuser
telegram.messagereactioncountupdated
telegram.messagereactionupdated
telegram.paidmedia
telegram.paidmediainfo
telegram.paidmediaphoto
telegram.paidmediapreview
telegram.paidmediavideo
telegram.photosize
telegram.poll
telegram.pollanswer
Expand All @@ -125,22 +133,12 @@ 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
6 changes: 6 additions & 0 deletions docs/source/telegram.inputpaidmedia.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
InputPaidMedia
==============

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

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

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

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

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

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

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

.. autoclass:: telegram.PaidMediaVideo
:members:
:show-inheritance:
11 changes: 11 additions & 0 deletions docs/source/telegram.payments-tree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ Payments
telegram.labeledprice
telegram.orderinfo
telegram.precheckoutquery
telegram.revenuewithdrawalstate
telegram.revenuewithdrawalstatefailed
telegram.revenuewithdrawalstatepending
telegram.revenuewithdrawalstatesucceeded
telegram.shippingaddress
telegram.shippingoption
telegram.shippingquery
telegram.startransaction
telegram.startransactions
telegram.successfulpayment
telegram.transactionpartner
telegram.transactionpartnerfragment
telegram.transactionpartnerother
telegram.transactionpartnertelegramads
telegram.transactionpartneruser
7 changes: 7 additions & 0 deletions docs/source/telegram.transactionpartnertelegramads.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TransactionPartnerTelegramAds
=============================

.. autoclass:: telegram.TransactionPartnerTelegramAds
:members:
:show-inheritance:
:inherited-members: TelegramObject
34 changes: 24 additions & 10 deletions telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@
"InputMediaPhoto",
"InputMediaVideo",
"InputMessageContent",
"InputPaidMedia",
"InputPaidMediaPhoto",
"InputPaidMediaVideo",
"InputPollOption",
"InputSticker",
"InputTextMessageContent",
Expand Down Expand Up @@ -173,6 +176,11 @@
"MessageReactionCountUpdated",
"MessageReactionUpdated",
"OrderInfo",
"PaidMedia",
"PaidMediaInfo",
"PaidMediaPhoto",
"PaidMediaPreview",
"PaidMediaVideo",
"PassportData",
"PassportElementError",
"PassportElementErrorDataField",
Expand Down Expand Up @@ -223,6 +231,7 @@
"TransactionPartner",
"TransactionPartnerFragment",
"TransactionPartnerOther",
"TransactionPartnerTelegramAds",
"TransactionPartnerUser",
"Update",
"User",
Expand Down Expand Up @@ -333,6 +342,9 @@
InputMediaDocument,
InputMediaPhoto,
InputMediaVideo,
InputPaidMedia,
InputPaidMediaPhoto,
InputPaidMediaVideo,
)
from ._files.inputsticker import InputSticker
from ._files.location import Location
Expand Down Expand Up @@ -405,6 +417,7 @@
MessageOriginUser,
)
from ._messagereactionupdated import MessageReactionCountUpdated, MessageReactionUpdated
from ._paidmedia import PaidMedia, PaidMediaInfo, PaidMediaPhoto, PaidMediaPreview, PaidMediaVideo
from ._passport.credentials import (
Credentials,
DataCredentials,
Expand Down Expand Up @@ -436,16 +449,7 @@
from ._payment.shippingaddress import ShippingAddress
from ._payment.shippingoption import ShippingOption
from ._payment.shippingquery import ShippingQuery
from ._payment.successfulpayment import SuccessfulPayment
from ._poll import InputPollOption, Poll, PollAnswer, PollOption
from ._proximityalerttriggered import ProximityAlertTriggered
from ._reaction import ReactionCount, ReactionType, ReactionTypeCustomEmoji, ReactionTypeEmoji
from ._reply import ExternalReplyInfo, ReplyParameters, TextQuote
from ._replykeyboardmarkup import ReplyKeyboardMarkup
from ._replykeyboardremove import ReplyKeyboardRemove
from ._sentwebappmessage import SentWebAppMessage
from ._shared import ChatShared, SharedUser, UsersShared
from ._stars import (
from ._payment.stars import (
RevenueWithdrawalState,
RevenueWithdrawalStateFailed,
RevenueWithdrawalStatePending,
Expand All @@ -455,8 +459,18 @@
TransactionPartner,
TransactionPartnerFragment,
TransactionPartnerOther,
TransactionPartnerTelegramAds,
TransactionPartnerUser,
)
from ._payment.successfulpayment import SuccessfulPayment
from ._poll import InputPollOption, Poll, PollAnswer, PollOption
from ._proximityalerttriggered import ProximityAlertTriggered
from ._reaction import ReactionCount, ReactionType, ReactionTypeCustomEmoji, ReactionTypeEmoji
from ._reply import ExternalReplyInfo, ReplyParameters, TextQuote
from ._replykeyboardmarkup import ReplyKeyboardMarkup
from ._replykeyboardremove import ReplyKeyboardRemove
from ._sentwebappmessage import SentWebAppMessage
from ._shared import ChatShared, SharedUser, UsersShared
from ._story import Story
from ._switchinlinequerychosenchat import SwitchInlineQueryChosenChat
from ._telegramobject import TelegramObject
Expand Down
Loading
Loading