Full Support for Bot API 8.1 by Bibo-Joshi · Pull Request #4594 · python-telegram-bot/python-telegram-bot · GitHub
Skip to content
Merged
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
5 changes: 5 additions & 0 deletions docs/auxil/sphinx_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ def autodoc_process_bases(app, name, obj, option, bases: list) -> None:
bases[idx] = ":class:`enum.IntEnum`"
continue

if "FloatEnum" in base:
bases[idx] = ":class:`enum.Enum`"
bases.insert(0, ":class:`float`")
continue

# Drop generics (at least for now)
if base.endswith("]"):
base = base.split("[", maxsplit=1)[0]
Expand Down
6 changes: 6 additions & 0 deletions docs/source/telegram.affiliateinfo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
AffiliateInfo
=============

.. autoclass:: telegram.AffiliateInfo
:members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/source/telegram.constants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ telegram.constants Module
:members:
:show-inheritance:
:no-undoc-members:
:inherited-members: Enum, EnumMeta, str, int
:inherited-members: Enum, EnumMeta, str, int, float
:exclude-members: __format__, __new__, __repr__, __str__
2 changes: 2 additions & 0 deletions docs/source/telegram.payments-tree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Your bot can accept payments from Telegram users. Please see the `introduction t
.. toctree::
:titlesonly:

telegram.affiliateinfo
telegram.invoice
telegram.labeledprice
telegram.orderinfo
Expand All @@ -25,6 +26,7 @@ Your bot can accept payments from Telegram users. Please see the `introduction t
telegram.startransactions
telegram.successfulpayment
telegram.transactionpartner
telegram.transactionpartneraffiliateprogram
telegram.transactionpartnerfragment
telegram.transactionpartnerother
telegram.transactionpartnertelegramads
Expand Down
6 changes: 6 additions & 0 deletions docs/source/telegram.transactionpartneraffiliateprogram.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TransactionPartnerAffiliateProgram
===================================

.. autoclass:: telegram.TransactionPartnerAffiliateProgram
:members:
:show-inheritance:
4 changes: 4 additions & 0 deletions telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

__author__ = "devs@python-telegram-bot.org"
__all__ = (
"AffiliateInfo",
"Animation",
"Audio",
"BackgroundFill",
Expand Down Expand Up @@ -236,6 +237,7 @@
"TelegramObject",
"TextQuote",
"TransactionPartner",
"TransactionPartnerAffiliateProgram",
"TransactionPartnerFragment",
"TransactionPartnerOther",
"TransactionPartnerTelegramAds",
Expand Down Expand Up @@ -469,13 +471,15 @@
from ._payment.shippingoption import ShippingOption
from ._payment.shippingquery import ShippingQuery
from ._payment.stars import (
AffiliateInfo,
RevenueWithdrawalState,
RevenueWithdrawalStateFailed,
RevenueWithdrawalStatePending,
RevenueWithdrawalStateSucceeded,
StarTransaction,
StarTransactions,
TransactionPartner,
TransactionPartnerAffiliateProgram,
TransactionPartnerFragment,
TransactionPartnerOther,
TransactionPartnerTelegramAds,
Expand Down
5 changes: 4 additions & 1 deletion telegram/_bot.py
Loading