Commit 9e71533
merge commit from KurimuzonAkuma/pyrogram (#2) to develop branch
* Added color and background_emoji_id to `User` and `Chat`
* Fix update_color chat parsing
* Fix Story.copy method
* Add quote support
* Fix quote if quote is not in reply
* Add quote filter
* Update Pyrogram to v2.0.106.8
* Add message_thread_id to forward_messages
* Add BOOSTS_REQUIRED to known errors
* Fix Story.copy
* Fix quote filter
* Add QUOTE_TEXT_INVALID to known errors
* Update Pyrogram to v2.0.106.9
* Fix missing spoiler in get_input_media_from_file_id
* Prevent connection to dc every time in save_file
* Fix missing has_spoiler
* Fix send_reaction for stories
* Add support for cross-chat replies
* Update Pyrogram to v2.0.106.10
* Fixed "ChannelPrivate" exception on parse param "reply_to_message" (#9)
* Add message copy arguments: reply_to_chat_id, quote_text, quote_entities (#10)
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
* Add giveaway type
* Add giveaway_launched to service messages
* Add get_boosts_status method
* Add support for spoilers in copy_message
* Fix parsing of pinned stories in case of channel
* Update Pyrogram to v2.0.106.11
* Request GetChannels as required
* Improve speed of stories parsing
* Fix reply_to_peer wrongly be set to the target chat_id
* Delete comment added by mistake
* Add update_chat_notifications method
* Update Pyrogram to v2.0.106.12
* Add `quote_text` & `quote_entities` on message copy (#11)
* Add some errors to known errors
* Add is_admin field to Chat object
* Add is_deactivated field to Chat object
* Add filters.admin
* Add toggle_forum_topics method
* Update Pyrogram to v2.0.106.13
* Fix update_chat_notifications
* Add force_large_media, force_small_media, manual fields to WebPage object (#12)
* Move force_large_media, force_small_media, manual fields closer to each other
* Add high-lvl for folders
* Add read bound method for Story
* Add giveaway filter
* Update Pyrogram to v2.0.106.14
* Add custom_action to service messages
* Fix misspelling function name in get_chat_history_count example
* Fix username field for users with multiple usernames
* Add mute/unmute bound method to Chat object
* Fix typehints for update_chat_notifications
* Allow Custom Storage Engines
* Fix async generator typehints
* Update Pyrogram to v2.0.106.15
* Make reply bound methods send to the same topic
* Add gift_code type
Co-authored-by: ZeN <artaganmalsagov07@gmail.com>
* Refactor ForumTopic
* Add link property to GiftCode
* Add gift_code filter
* Update Pyrogram to v2.0.106.16
* Add reply_to_chat_id to copy_message (pyrogram#14)
* Update chat username parsing in case of multiple usernames
* Update MIN_CHAT_ID
* Update Pyrogram to v2.0.106.17
* Update docs compiler
* Remove timedelta in update_chat_notifications
* Update description of update_color
* Add requested_chat to service messages
* Add new keyboard buttons
* Add ProfileColor enum
* Update Python Version (#16)
* Fix requested_chat parsing and new buttons
* Add some errors to known errors
* Fix update_color enum
* Update Pyrogram to v2.0.106.18
* Fix typehints for enums
* Changed requested_chat_id to requested_chat
* Remove url uploading from send_story/edit_story
* Update Pyrogram to v2.0.106.19
* Update API schema to Layer 167
* Add some errors to known errors
* Fix api compiling
* Update some methods and types to new layer
* Update Pyrogram to v2.0.106.20
* Update get_raw_peer_id and get_peer_id
* Refactor folders
* Fix usable-by description
* Add get_similar_channels to high-lvl
* Update topic parsing
* Fix chat color parsing
* Fix KeyboardButton
* Update Pyrogram to v2.0.106.21
* Docstrings for storage class
* Remove StorySkipped and StoryDeleted type
* Refactor ChatColor
* Remove MessageStory type
* Fix get_stories
* Remove StoryViews type
* Add some errors to known errors
* Update story methods description
* Remove edit_story method
* Fix color description
* Return bool from update_color
* Fix reply_color
* Fix story forward_from
* Remove StoryViews from compiler
* Update story method description
* Fix story parsing
* Update send_reaction description
* Add is_premium to Sticker
* Add tests for markdown
* Add some errors to known errors
* Update forum topic parsing in Message object
* Add forum filter
* Add edit_hidden field to Message object
* Add missing schedule_date to edit_message methods
* Update start_bot method
* Add topic_id to read_mentions and read_reactions method
* Fix is_forum field for supergroups only
* Fix read_stories in case max_id is missing
* Add update_color to compiler
* Update Pyrogram to v2.1.0
* Add support for multiple reactions in send_reaction
* Update Pyrogram to v2.1.1
* Update API schema to Layer 169
* Update Pyrogram to v2.1.2
* Ignore KeyError in get_dialogs and get_folders
* Fix requested chats
* Fix message.download in case of Story
* Add max_quantity to request_peer buttons
* Rename is_participants_hidden to is_members_hidden
* Update Pyrogram to v2.1.3
* Added filters `requested_chat` and `story` (pyrogram#18)
Add requested_chats and story filter
---------
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
* Add missing optional to some methods description
* Add missing attributes to the Giveaway type
* Add some errors to known errors
* Update Pyrogram to v2.1.4
* Raise exception if auth key not found
* Add GiveawayResult type
* Update Pyrogram to v2.1.5
* Add missing privileges to the ChatPrivileges type
* Add missing privileges to the promote_chat_member method
* Add privileges to RequestPeer buttons
* Fix max_quantity error if it is None
* Refactor download_media
* Revert changes related to the Story.download
* Add invert_media parameter to send_message method
* Add new method send_web_page
* Update some methods and types description
* Update Pyrogram to v2.1.6
* Update API schema to Layer 170
* Update Pyrogram to v2.1.7
* Add support for self-destructing voice notes
* Add invert_media parameter to Message.reply_text method
* Update description of some methods
* Add missing attributes to the WebPage type
* Update Pyrogram to v2.1.8
* Update usable-by in send_reaction
* Add missing attributes to the Chat type
* Update description of some methods
* Add new method set_chat_ttl
* Add max_quantity parameter to KeyboardButton constructor
* Add new methods join/leave_folder
* Update Pyrogram to v2.1.9
* Fix update_folder method
* Update Pyrogram to v2.1.10
* Fix message.topic parsing in some cases
* Remove blockquote unparsing from markdown parser
* Add FloodWait except to media download (pyrogram#19)
Add FloodWait except to media download to handle this error from the script.
Before this change the exception would only be printed and the script would continue without a way to detect this error.
Co-authored-by: KNF Apps <jordyamc@users.noreply.github.com>
* Fix message.story parsing in some cases
* Remove export_story_link method
* Make Storage class an abstract base class
* Allow to specify a language pack
* Update Pyrogram to v2.1.11
* Update API schema to Layer 171
* Make url parameter optional for send_web_page
* Add reply_web_page bound method
* Update API schema to Layer 172
* Fix vectors deserialization
* Add some errors to known errors
* Fix session not getting saved to media_sessions in save_file method. (pyrogram#20)
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
* Add support for self-destructing video notes
* Rename some attributes
https://t.me/pyrogramchat/102
* Add protect_content parameter to reply_document method
* Update Pyrogram to v2.1.12
* Update python.yml
* Increase watchdog interval to 15 minutes
https://core.telegram.org/api/updates#recovering-gaps
* Fix MyBoost parsing
* Update API schema to Layer 173
* Move emoji argument above story_id
* Fix history TTL Service Message Parse (#21)
Co-authored-by: Colin <colin@colinshark.de>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
Co-authored-by: Akkia <AkkiaS7@outlook.com>
* Fix increment_story_views
* Add toggle_join_to_send method (#22)
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
* Fix `send_audio` not working as expected (pyrogram#23)
* Fix ConnectionResetError when only ping task (pyrogram#24)
* Update API schema to Layer 174
* Various improvements
* Add deleted parameter to ForumTopic class
* Update Pyrogram to v2.1.13
* Add `Str.html` and `Str.markdown` typing (#26)
* Add new method check_username
* Add RequestedChats type
* Fix message parsing in case of reply to story
* Update reply filter to work with stories
* Add is_contact_require_premium attribute to User class
* Add system_lang_code to Client and missing enums to SentCodeType (#27)
* Add init_connection_params parameter to Client class
* Add support for ApplyBoost service messages
* Add new parameters to send_code method
* Add raw attribute to Message class
* Add raw attribute to Story class
* Add ttl_seconds attribute to Voice and VideoNote class
* Fix parameter descriptions
* Update Pyrogram to v2.1.14
* Fix get_folders
* Add show_above_text to Message.edit bound method
* Add quotes to markdown
* Add custom emojis to markdown
* Update check_username method
* Add skip_updates parameter to Client class
* Fix message parsing in case of reply from private chat
* Fix max_concurrent_transmissions typing (#31)
* Allow to specify a limit to message cache size
* Recover updates in date ascending order
* Update API schema to Layer 176
* Add business_info attribute to Chat type
* Update Pyrogram to v2.1.15
* Remove unnecessary types from docs compiler
* Fix recovering gaps in case of private channel
* Add color attribute to Folder
* Add new toggle_folder_tags method
* Fix get_folders
* Refactor download_media
* Refactor sqlite storage
* Add missing methods to docs compiler
* Add hide_sender_name and hide_captions parameters to forward
* Add no_sound parameter to send_video methods
* Add new get_stickers method
* Add sender_boost_count attribute to Message class
* Add new get_scheduled_messages method
* Add typehints to all of the decorators classes (#34)
* Update Pyrogram to v2.1.16
* Renamed ttl_seconds to view_once in send_video_note and send_voice
* Add is_public parameter to set_profile_photo and minor fixes (#35)
* Fix invalid usage of input_message_content.write method (without await).
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
* Fix promote_chat_member using can_post_stories for edit_story permission.
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
* Refactor get_forum_topics_by_id method and make sure to pass messages parameter to it (if it exists).
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
* Add fallback parameter to set_profile_photo method.
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
* Fix download_media method not checking for file_id.
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
* Rename fallback to is_public
* Revert get_forum_topics_by_id.py
---------
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
* Fix get_scheduled_messages
* Update API schema to Layer 177
* Add birthday attribute to Chat class
* Add new update_birthday method
* Add some errors to known errors
---------
Signed-off-by: Aliwoto <aminnimaj@gmail.com>
Co-authored-by: KurimuzonAkuma <arturgayauskas@gmail.com>
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
Co-authored-by: CometovArt <cometovart@ya.ru>
Co-authored-by: Aliwoto <woto@kaizoku.cyou>
Co-authored-by: Kroks4502 <99325746+Kroks4502@users.noreply.github.com>
Co-authored-by: Albert Zuev <63642425+iamnalinor@users.noreply.github.com>
Co-authored-by: ZeN <artaganmalsagov07@gmail.com>
Co-authored-by: CometovArt <62966578+CometovArt@users.noreply.github.com>
Co-authored-by: Pranav Saraswat <85411336+Pranav-Saraswat@users.noreply.github.com>
Co-authored-by: Yehuda lev <94082865+yehuda-lev@users.noreply.github.com>
Co-authored-by: aoleg94 <aoleg94@users.noreply.github.com>
Co-authored-by: KNF Apps <jordyamc@users.noreply.github.com>
Co-authored-by: AmarnathCJD <amarnathc2026@cs.ajce.in>
Co-authored-by: ALi.w <aminnimaj@gmail.com>
Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
Co-authored-by: Colin <colin@colinshark.de>
Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
Co-authored-by: Akkia <AkkiaS7@outlook.com>
Co-authored-by: Shrimadhav U K <SpEcHiDe@users.noreply.github.com>
Co-authored-by: sliva0 <48382801+sliva0@users.noreply.github.com>
Co-authored-by: Gor <47748749+ke1io@users.noreply.github.com>
Co-authored-by: L <60060180+zawsq@users.noreply.github.com>
Co-authored-by: tg:@mars_hall <mars.hall.tg.fck@gmail.com>1 parent efac171 commit 9e71533
203 files changed
Lines changed: 13085 additions & 493 deletions
File tree
- .github/workflows
- compiler
- api
- source
- docs
- template
- errors/source
- pyrogram
- enums
- handlers
- methods
- advanced
- auth
- bots
- chats
- decorators
- invite_links
- messages
- stories
- users
- parser
- raw/core/primitives
- session
- storage
- types
- bots_and_keyboards
- inline_mode
- input_media
- messages_and_media
- user_and_chats
- tests/parser
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 | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
| |||
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
240 | 264 | | |
241 | 265 | | |
242 | 266 | | |
| |||
253 | 277 | | |
254 | 278 | | |
255 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
256 | 283 | | |
257 | 284 | | |
258 | 285 | | |
| |||
330 | 357 | | |
331 | 358 | | |
332 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
333 | 386 | | |
334 | 387 | | |
335 | 388 | | |
| |||
371 | 424 | | |
372 | 425 | | |
373 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
374 | 433 | | |
| 434 | + | |
375 | 435 | | |
376 | 436 | | |
377 | 437 | | |
| |||
388 | 448 | | |
389 | 449 | | |
390 | 450 | | |
| 451 | + | |
| 452 | + | |
391 | 453 | | |
392 | 454 | | |
393 | 455 | | |
| |||
418 | 480 | | |
419 | 481 | | |
420 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
421 | 489 | | |
422 | 490 | | |
423 | 491 | | |
| |||
437 | 505 | | |
438 | 506 | | |
439 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
440 | 513 | | |
441 | 514 | | |
442 | 515 | | |
| |||
557 | 630 | | |
558 | 631 | | |
559 | 632 | | |
| 633 | + | |
560 | 634 | | |
561 | 635 | | |
562 | 636 | | |
| |||
567 | 641 | | |
568 | 642 | | |
569 | 643 | | |
| 644 | + | |
570 | 645 | | |
571 | 646 | | |
572 | 647 | | |
573 | 648 | | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
574 | 652 | | |
575 | 653 | | |
576 | 654 | | |
577 | | - | |
578 | | - | |
579 | 655 | | |
580 | 656 | | |
581 | 657 | | |
| 658 | + | |
| 659 | + | |
582 | 660 | | |
583 | 661 | | |
584 | 662 | | |
585 | 663 | | |
586 | 664 | | |
587 | 665 | | |
588 | 666 | | |
| 667 | + | |
589 | 668 | | |
590 | 669 | | |
591 | 670 | | |
| |||
603 | 682 | | |
604 | 683 | | |
605 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
606 | 718 | | |
607 | 719 | | |
608 | 720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
154 | 180 | | |
155 | 181 | | |
156 | 182 | | |
| |||
165 | 191 | | |
166 | 192 | | |
167 | 193 | | |
168 | | - | |
| 194 | + | |
0 commit comments