mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
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:
parent
6520b9fba2
commit
782796c217
25 changed files with 433 additions and 51 deletions
10
docs/api/types/affiliate_info.rst
Normal file
10
docs/api/types/affiliate_info.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#############
|
||||
AffiliateInfo
|
||||
#############
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.affiliate_info
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
|
@ -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
|
||||
=================
|
||||
|
||||
|
|
|
|||
10
docs/api/types/transaction_partner_affiliate_program.rst
Normal file
10
docs/api/types/transaction_partner_affiliate_program.rst
Normal 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
|
||||
11
docs/conf.py
11
docs/conf.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue