Added full support of Bot API 8.1 (#1617)

* Added full support of Bot API 8.1

* Remove  artifacts from types and methods (model_* methods)
This commit is contained in:
Alex Root Junior 2024-12-14 19:30:12 +02:00 committed by GitHub
parent 6520b9fba2
commit 782796c217
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 433 additions and 51 deletions

View file

@ -0,0 +1,10 @@
#############
AffiliateInfo
#############
.. automodule:: aiogram.types.affiliate_info
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields

View file

@ -203,25 +203,13 @@ Inline mode
prepared_inline_message
sent_web_app_message
Stickers
========
.. toctree::
:maxdepth: 1
gift
gifts
input_sticker
mask_position
sticker
sticker_set
Payments
========
.. toctree::
:maxdepth: 1
affiliate_info
invoice
labeled_price
order_info
@ -239,12 +227,26 @@ Payments
star_transactions
successful_payment
transaction_partner
transaction_partner_affiliate_program
transaction_partner_fragment
transaction_partner_other
transaction_partner_telegram_ads
transaction_partner_telegram_api
transaction_partner_user
Stickers
========
.. toctree::
:maxdepth: 1
gift
gifts
input_sticker
mask_position
sticker
sticker_set
Telegram Passport
=================

View file

@ -0,0 +1,10 @@
##################################
TransactionPartnerAffiliateProgram
##################################
.. automodule:: aiogram.types.transaction_partner_affiliate_program
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields

View file

@ -69,3 +69,14 @@ texinfo_documents = [
towncrier_draft_autoversion_mode = "draft"
towncrier_draft_include_empty = False
towncrier_draft_working_directory = Path(__file__).parent.parent
def skip_model_prefixed_members(app, what, name, obj, skip, options):
# Skip any member whose name starts with "model_"
if name.startswith("model_"):
return True
return skip
def setup(app):
app.connect("autodoc-skip-member", skip_model_prefixed_members)