Skip to content

Commit d407b92

Browse files
committed
refactor: rename SendStory to PostStory and update related references
1 parent 5ce0fd4 commit d407b92

62 files changed

Lines changed: 784 additions & 383 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

compiler/docs/compiler.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def get_title_list(s: str) -> list:
249249
send_contact
250250
send_cached_media
251251
send_reaction
252+
send_web_page
252253
edit_message_text
253254
edit_message_caption
254255
edit_message_checklist
@@ -347,6 +348,7 @@ def get_title_list(s: str) -> list:
347348
create_supergroup
348349
delete_channel
349350
delete_folder_invite_link
351+
edit_folder_invite_link
350352
get_folder_invite_links
351353
delete_supergroup
352354
delete_user_history
@@ -563,6 +565,7 @@ def get_title_list(s: str) -> list:
563565
advanced="""
564566
Advanced
565567
invoke
568+
get_config
566569
recover_gaps
567570
resolve_peer
568571
save_file
@@ -587,7 +590,7 @@ def get_title_list(s: str) -> list:
587590
pin_chat_stories
588591
unpin_chat_stories
589592
read_chat_stories
590-
send_story
593+
post_story
591594
enable_stealth_mode
592595
get_story_views
593596
""",
@@ -665,8 +668,10 @@ def get_title_list(s: str) -> list:
665668
ChatMember
666669
ChatPermissions
667670
ChatAdministratorRights
671+
ChatPrivileges
668672
ChatInviteLink
669673
ChatAdminWithInviteLinks
674+
InviteLinkImporter
670675
ChatEvent
671676
ChatEventFilter
672677
ChatMemberUpdated
@@ -677,6 +682,7 @@ def get_title_list(s: str) -> list:
677682
EmojiStatus
678683
FailedToAddMember
679684
Folder
685+
FolderInviteLink
680686
GroupCallMember
681687
ChatColor
682688
FoundContacts
@@ -787,6 +793,9 @@ def get_title_list(s: str) -> list:
787793
SuggestedPostDeclined
788794
SuggestedPostRefunded
789795
TextQuote
796+
PaidMedia
797+
PaidMediaPhoto
798+
PaidMediaVideo
790799
PaidMediaInfo
791800
PaidMediaPreview
792801
PaidMessagesRefunded
@@ -868,6 +877,7 @@ def get_title_list(s: str) -> list:
868877
MessageReactionUpdated
869878
MessageReactionCountUpdated
870879
ChatBoostUpdated
880+
LabeledPrice
871881
ShippingOption
872882
PurchasedPaidMedia
873883
ChatShared
@@ -929,7 +939,8 @@ def get_title_list(s: str) -> list:
929939
InlineQueryResult
930940
InlineQueryResultCachedAudio
931941
InlineQueryResultCachedDocument
932-
InlineQueryResultCachedAnimation
942+
InlineQueryResultCachedGif
943+
InlineQueryResultCachedMpeg4Gif
933944
InlineQueryResultCachedPhoto
934945
InlineQueryResultCachedSticker
935946
InlineQueryResultCachedVideo
@@ -938,8 +949,10 @@ def get_title_list(s: str) -> list:
938949
InlineQueryResultAudio
939950
InlineQueryResultContact
940951
InlineQueryResultDocument
941-
InlineQueryResultAnimation
952+
InlineQueryResultGame
953+
InlineQueryResultGif
942954
InlineQueryResultLocation
955+
InlineQueryResultMpeg4Gif
943956
InlineQueryResultPhoto
944957
InlineQueryResultVenue
945958
InlineQueryResultVideo
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. raw:: html
2+
3+
<blockquote>
4+
<strong>Usable by</strong>
5+
<span class="usable-by"><span style="color: var(--color-red)">&#10007;</span> Users</span>
6+
<span class="usable-by"><span style="color: var(--color-green)">&#10003;</span> Bots</span>
7+
</blockquote>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. raw:: html
2+
3+
<blockquote>
4+
<strong>Usable by</strong>
5+
<span class="usable-by"><span style="color: var(--color-green)">&#10003;</span> Users</span>
6+
<span class="usable-by"><span style="color: var(--color-green)">&#10003;</span> Bots</span>
7+
</blockquote>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. raw:: html
2+
3+
<blockquote>
4+
<strong>Usable by</strong>
5+
<span class="usable-by"><span style="color: var(--color-green)">&#10003;</span> Users</span>
6+
<span class="usable-by"><span style="color: var(--color-red)">&#10007;</span> Bots</span>
7+
</blockquote>

docs/source/_static/custom.css

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/* Usable-by badges (from docstrings) */
2+
body {
3+
--color-green: darkgreen;
4+
--color-red: darkred;
5+
}
6+
7+
html[data-theme="dark"] body {
8+
--color-green: #4ade80;
9+
--color-red: #f87171;
10+
}
11+
12+
.usable-by {
13+
border-radius: 0.2em;
14+
padding: 2px 5px;
15+
font-size: 0.85em;
16+
}
17+
18+
/* Landing page hero */
19+
.landing-hero h1 {
20+
font-size: 3.5rem;
21+
font-weight: 800;
22+
letter-spacing: -0.03em;
23+
line-height: 1.1;
24+
margin-bottom: 0.5rem;
25+
}
26+
27+
.landing-hero .lead {
28+
font-size: 1.25rem;
29+
opacity: 0.8;
30+
max-width: 600px;
31+
margin: 0 auto 1.5rem;
32+
}
33+
34+
/* Feature cards */
35+
.surface .sd-card {
36+
border-radius: 12px;
37+
transition: transform 0.2s ease, box-shadow 0.2s ease;
38+
}
39+
40+
.surface .sd-card:hover {
41+
transform: translateY(-2px);
42+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
43+
}
44+
45+
html[data-theme="dark"] .surface .sd-card:hover {
46+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
47+
}
48+
49+
.surface .sd-card .sd-card-header {
50+
font-weight: 700;
51+
}
52+
53+
/* Code block polish */
54+
div[class*="highlight-"] {
55+
border-radius: 8px;
56+
overflow: hidden;
57+
}
58+
59+
/* Buttons container on landing page */
60+
.buttons {
61+
display: flex;
62+
gap: 0.75rem;
63+
justify-content: center;
64+
flex-wrap: wrap;
65+
margin: 1.5rem 0 2.5rem;
66+
}
67+
68+
.buttons a {
69+
display: inline-flex;
70+
align-items: center;
71+
gap: 0.4rem;
72+
padding: 0.6rem 1.6rem;
73+
border-radius: 8px;
74+
font-weight: 600;
75+
font-size: 0.95rem;
76+
text-decoration: none;
77+
transition: opacity 0.15s ease;
78+
}
79+
80+
.buttons a:hover {
81+
opacity: 0.85;
82+
}
83+
84+
/* Section dividers */
85+
.landing-section {
86+
margin-top: 3rem;
87+
margin-bottom: 1rem;
88+
}
89+
90+
.landing-section h2 {
91+
font-size: 1.6rem;
92+
font-weight: 700;
93+
letter-spacing: -0.02em;
94+
}
95+
96+
/* Quick links cards */
97+
.sd-card .sd-card-title {
98+
font-size: 1rem;
99+
font-weight: 600;
100+
}
101+
102+
.sd-card .sd-card-text {
103+
font-size: 0.9rem;
104+
opacity: 0.85;
105+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<link rel="preconnect" href="https://fonts.googleapis.com">
2+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
3+
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
4+
<style>
5+
:root {
6+
--sy-f-heading: 'Plus Jakarta Sans', var(--sy-f-sys), sans-serif;
7+
--sy-f-text: 'Inter', var(--sy-f-sys), sans-serif;
8+
--sy-f-mono: 'JetBrains Mono', var(--sy-f-sys), monospace;
9+
}
10+
</style>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BlockList
2+
=========
3+
4+
.. autoclass:: pyrogram.enums.BlockList()
5+
:members:
6+
7+
.. raw:: html
8+
:file: ./cleanup.html
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BusinessSchedule
2+
================
3+
4+
.. autoclass:: pyrogram.enums.BusinessSchedule()
5+
:members:
6+
7+
.. raw:: html
8+
:file: ./cleanup.html
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ButtonStyle
2+
===========
3+
4+
.. autoclass:: pyrogram.enums.ButtonStyle()
5+
:members:
6+
7+
.. raw:: html
8+
:file: ./cleanup.html
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ChatAction
2+
==========
3+
4+
.. autoclass:: pyrogram.enums.ChatAction()
5+
:members:
6+
7+
.. raw:: html
8+
:file: ./cleanup.html

0 commit comments

Comments
 (0)