diff --git a/compiler/docs/compiler.py b/compiler/docs/compiler.py index 6deb1b3be..b3a372fb0 100644 --- a/compiler/docs/compiler.py +++ b/compiler/docs/compiler.py @@ -350,24 +350,24 @@ def get_title_list(s: str) -> list: Payments apply_gift_code check_gift_code - convert_star_gift + convert_gift create_invoice_link get_payment_form - get_star_gifts get_stars_transactions get_stars_transactions_by_id - get_user_star_gifts_count - get_user_star_gifts - hide_star_gift + get_available_gifts + get_user_gifts_count + get_user_gifts + hide_gift refund_star_payment send_invoice send_paid_media send_paid_reaction send_payment_form - send_star_gift - show_star_gift - transfer_star_gift - upgrade_star_gift + send_gift + show_gift + transfer_gift + upgrade_gift """, password=""" Password @@ -396,11 +396,6 @@ def get_title_list(s: str) -> list: get_bot_info set_bot_info get_collectible_item_info - get_available_gifts - get_user_gifts - sell_gift - send_gift - toggle_gift_is_saved get_owned_bots """, business=""" @@ -527,6 +522,8 @@ def get_title_list(s: str) -> list: Sticker StickerSet Game + Gift + GiftAttribute Giveaway GiveawayLaunched GiveawayResult @@ -539,7 +536,6 @@ def get_title_list(s: str) -> list: PollOption Dice Reaction - StarGift VideoChatScheduled VideoChatStarted VideoChatEnded @@ -565,7 +561,6 @@ def get_title_list(s: str) -> list: ScreenshotTaken Wallpaper WallpaperSettings - StarGiftAttribute """, stories=""" Stories @@ -587,8 +582,6 @@ def get_title_list(s: str) -> list: ExtendedMediaPreview GiftCode GiftedPremium - Gift - StarGift InputStarsTransaction Invoice LabeledPrice @@ -844,6 +837,25 @@ def get_title_list(s: str) -> list: Story.reply_video_note Story.reply_voice """, + folder=""" + Folder + Folder.delete + Folder.update + Folder.include_chat + Folder.exclude_chat + Folder.update_color + Folder.pin_chat + Folder.remove_chat + Folder.export_link + """, + gift=""" + Gift + Gift.show + Gift.hide + Gift.convert + Gift.upgrade + Gift.transfer + """, callback_query=""" Callback Query CallbackQuery.answer diff --git a/compiler/docs/template/bound-methods.rst b/compiler/docs/template/bound-methods.rst index 13ca9740b..59ecac2a6 100644 --- a/compiler/docs/template/bound-methods.rst +++ b/compiler/docs/template/bound-methods.rst @@ -140,3 +140,28 @@ ChatJoinRequest {chat_join_request_toctree} +Folder +--------------- + +.. hlist:: + :columns: 2 + + {folder_hlist} + +.. toctree:: + :hidden: + + {folder_toctree} + +Gift +--------------- + +.. hlist:: + :columns: 2 + + {gift_hlist} + +.. toctree:: + :hidden: + + {gift_toctree} diff --git a/compiler/docs/template/methods.rst b/compiler/docs/template/methods.rst index c48e37ac9..cdce93885 100644 --- a/compiler/docs/template/methods.rst +++ b/compiler/docs/template/methods.rst @@ -190,6 +190,19 @@ Bots {bots} +Payments +---- + +.. autosummary:: + :nosignatures: + + {payments} + +.. toctree:: + :hidden: + + {payments} + Authorization ------------- @@ -217,4 +230,4 @@ Learn more about how to use the raw API at :doc:`Advanced Usage <../../topics/ad .. toctree:: :hidden: - {advanced} \ No newline at end of file + {advanced} diff --git a/compiler/docs/template/types.rst b/compiler/docs/template/types.rst index 13b60b2df..53305e8cd 100644 --- a/compiler/docs/template/types.rst +++ b/compiler/docs/template/types.rst @@ -164,6 +164,45 @@ InputMessageContent {input_message_content} +ShippingQuery +------------------- + +.. autosummary:: + :nosignatures: + + {shipping_query} + +.. toctree:: + :hidden: + + {shipping_query} + +PreCheckoutQuery +------------------- + +.. autosummary:: + :nosignatures: + + {pre_checkout_query} + +.. toctree:: + :hidden: + + {pre_checkout_query} + +Payment +------------------- + +.. autosummary:: + :nosignatures: + + {payment} + +.. toctree:: + :hidden: + + {payment} + Authorization ------------- @@ -175,4 +214,4 @@ Authorization .. toctree:: :hidden: - {authorization} \ No newline at end of file + {authorization} diff --git a/docs/source/api/enums/BusinessSchedule.rst b/docs/source/api/enums/BusinessSchedule.rst new file mode 100644 index 000000000..4db50d7bf --- /dev/null +++ b/docs/source/api/enums/BusinessSchedule.rst @@ -0,0 +1,8 @@ +BusinessSchedule +========== + +.. autoclass:: pyrogram.enums.BusinessSchedule() + :members: + +.. raw:: html + :file: ./cleanup.html diff --git a/docs/source/api/enums/ChatJoinType.rst b/docs/source/api/enums/ChatJoinType.rst new file mode 100644 index 000000000..95209e330 --- /dev/null +++ b/docs/source/api/enums/ChatJoinType.rst @@ -0,0 +1,8 @@ +ChatJoinType +========== + +.. autoclass:: pyrogram.enums.ChatJoinType() + :members: + +.. raw:: html + :file: ./cleanup.html diff --git a/docs/source/api/enums/ClientPlatform.rst b/docs/source/api/enums/ClientPlatform.rst new file mode 100644 index 000000000..8910f28d4 --- /dev/null +++ b/docs/source/api/enums/ClientPlatform.rst @@ -0,0 +1,8 @@ +ClientPlatform +========== + +.. autoclass:: pyrogram.enums.ClientPlatform() + :members: + +.. raw:: html + :file: ./cleanup.html diff --git a/docs/source/api/enums/GiftAttributeType.rst b/docs/source/api/enums/GiftAttributeType.rst new file mode 100644 index 000000000..b6b239f2f --- /dev/null +++ b/docs/source/api/enums/GiftAttributeType.rst @@ -0,0 +1,8 @@ +GiftAttributeType +========== + +.. autoclass:: pyrogram.enums.GiftAttributeType() + :members: + +.. raw:: html + :file: ./cleanup.html diff --git a/docs/source/api/enums/ProfileColor.rst b/docs/source/api/enums/ProfileColor.rst new file mode 100644 index 000000000..893c111e6 --- /dev/null +++ b/docs/source/api/enums/ProfileColor.rst @@ -0,0 +1,8 @@ +ProfileColor +========== + +.. autoclass:: pyrogram.enums.ProfileColor() + :members: + +.. raw:: html + :file: ./cleanup.html diff --git a/docs/source/api/enums/ReplyColor.rst b/docs/source/api/enums/ReplyColor.rst new file mode 100644 index 000000000..4b9e45e56 --- /dev/null +++ b/docs/source/api/enums/ReplyColor.rst @@ -0,0 +1,8 @@ +ReplyColor +========== + +.. autoclass:: pyrogram.enums.ReplyColor() + :members: + +.. raw:: html + :file: ./cleanup.html diff --git a/docs/source/api/enums/index.rst b/docs/source/api/enums/index.rst index 7eb92c3bd..0de90228b 100644 --- a/docs/source/api/enums/index.rst +++ b/docs/source/api/enums/index.rst @@ -16,10 +16,13 @@ to apply only a valid value among the expected ones. BusinessSchedule ChatAction ChatEventAction + ChatJoinType ChatMemberStatus ChatMembersFilter ChatType + ClientPlatform FolderColor + GiftAttributeType ListenerTypes MessageEntityType MessageMediaType @@ -27,22 +30,28 @@ to apply only a valid value among the expected ones. MessagesFilter ParseMode PollType + ProfileColor SentCodeType NextCodeType UserStatus ReactionType + ReplyColor StoriesPrivacyRules StoryPrivacy .. toctree:: :hidden: + BusinessSchedule ChatAction ChatEventAction + ChatJoinType ChatMemberStatus ChatMembersFilter ChatType + ClientPlatform FolderColor + GiftAttributeType ListenerTypes MessageEntityType MessageMediaType @@ -50,9 +59,11 @@ to apply only a valid value among the expected ones. MessagesFilter ParseMode PollType + ProfileColor SentCodeType NextCodeType UserStatus ReactionType + ReplyColor StoriesPrivacyRules StoryPrivacy