Commit 5734faf
committed
Update: 2.4.0 (#38)
Layer 228, Communities, Monoforum, Ephemeral edit methods, Rich Messages, Guard Bot, and more.
Layer Updates
- Updated API schema through layers 221 -> 228.
- Added ephemeral.editMessage and updateEphemeralBotCallbackQuery to the TL schema (missing from upstream layer 228 dump).
Communities
- New communities.* namespace with 10 methods, including add_chat_to_community and get_joined_communities.
- Documented the separate community ID space (no -100 prefix) in the FAQ.
Monoforum / Direct Messages
- New methods: toggle_direct_messages, get_monoforum_dialogs, get_monoforum_history, read_monoforum_history, delete_monoforum_history.
Ephemeral Messages
- New ephemeral.* namespace: send/delete/report/get_callback_answer.
- New edit methods: edit_ephemeral_message_text, _caption, _media, _reply_markup.
Rich Messages (Bot API 10.1)
- New types: RichMessage, RichText, RichBlock, InputRichMessage, PollLink.
- New methods: send_rich_message, send_rich_message_draft, translate_rich_message, compose_rich_message_with_ai, request_chat_join_web_view.
Guard Bot & Join Request Queries
- set_chat_guard_bot, answer_guard_bot_query, answer_chat_join_request_query, send_chat_join_request_web_app.
Streaming Text
- send_streaming_text.
Bot & Browser Settings
- get/edit_bot_access_settings, confirm_bot_connection, get/update_web_browser_settings, toggle/delete_web_browser_exception(s).
User & Chat
- New User/Chat fields (color, profile_color, linked_community_id, monoforum, etc.), new PeerColor type, ChatPrivileges additions.
Styled Keyboards
- InlineKeyboardButton/KeyboardButton style parameter, new KeyboardButtonStyle enum.
Bug Fixes
- Session reconnect deadlock fixed.
- account.* namespace corrected for web browser methods and confirm_bot_connection.
- Fixed message_thread_id, EmojiStatusUntil AttributeError, PeerID invalid.
- Fixed messages.chatInviteJoinResultWebView TL ID/schema.
- Fixed messages.composedRichMessageWithAI TL ID/schema.
- Fixed TypeError on send_message from missing ephemeral_receiver_bot_id.
Build
- Migrated scrape-errors CI to uv.
- docs.json regenerated for layers 225, 227, 228.
- invoke() now has a generic return type.
- Fixed async/asyncio compatibility for Python 3.13 & 3.14.1 parent d83820e commit 5734faf
183 files changed
Lines changed: 11076 additions & 2079 deletions
File tree
- .github/workflows
- compiler
- api
- source
- template
- docs
- template
- errors/source
- docs/source
- faq
- intro
- releases
- start
- examples
- topics
- pyrogram
- enums
- handlers
- methods
- advanced
- auth
- bots
- chats
- communities
- decorators
- ephemeral
- messages
- utilities
- raw/core
- session
- types
- bots_and_keyboards
- inline_mode
- input_message_content
- messages_and_media
- user_and_chats
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 27 | + | |
| 28 | + | |
32 | 29 | | |
33 | 30 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 31 | + | |
37 | 32 | | |
38 | | - | |
| 33 | + | |
39 | 34 | | |
40 | 35 | | |
41 | | - | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 28 | + | |
33 | 29 | | |
34 | | - | |
| 30 | + | |
35 | 31 | | |
36 | | - | |
| 32 | + | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
41 | 37 | | |
42 | 38 | | |
43 | | - | |
| 39 | + | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
| |||
50 | 46 | | |
51 | 47 | | |
52 | 48 | | |
53 | | - | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 1 | | |
8 | 2 | | |
9 | 3 | | |
10 | 4 | | |
11 | 5 | | |
12 | | - | |
| 6 | + | |
13 | 7 | | |
14 | | - | |
| 8 | + | |
15 | 9 | | |
16 | 10 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
22 | 16 | | |
23 | 17 | | |
24 | 18 | | |
| |||
40 | 34 | | |
41 | 35 | | |
42 | 36 | | |
43 | | - | |
44 | | - | |
| 37 | + | |
| 38 | + | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | | - | |
49 | | - | |
| 42 | + | |
| 43 | + | |
50 | 44 | | |
51 | 45 | | |
52 | 46 | | |
53 | | - | |
54 | | - | |
| 47 | + | |
55 | 48 | | |
56 | 49 | | |
57 | 50 | | |
| |||
60 | 53 | | |
61 | 54 | | |
62 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
103 | 116 | | |
104 | 117 | | |
105 | 118 | | |
| |||
301 | 314 | | |
302 | 315 | | |
303 | 316 | | |
304 | | - | |
| 317 | + | |
305 | 318 | | |
306 | 319 | | |
307 | 320 | | |
| |||
548 | 561 | | |
549 | 562 | | |
550 | 563 | | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
551 | 570 | | |
552 | 571 | | |
553 | 572 | | |
| |||
560 | 579 | | |
561 | 580 | | |
562 | 581 | | |
563 | | - | |
| 582 | + | |
| 583 | + | |
564 | 584 | | |
565 | 585 | | |
566 | 586 | | |
| |||
585 | 605 | | |
586 | 606 | | |
587 | 607 | | |
| 608 | + | |
588 | 609 | | |
589 | 610 | | |
590 | 611 | | |
| |||
0 commit comments