-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Overhaul of Filters #2759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Overhaul of Filters #2759
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
5948095
Temporarily enable tests for the v14 branch
Bibo-Joshi 53aca25
Move and Rename TelegramDecryptionError to telegram.error.PassportDec…
harshil21 af2516b
Add Code Comment Guidelines to Contribution Guide (#2612)
Poolitzer b5723f0
Improve Type Hinting for CallbackContext (#2587)
revolter 6ca92ec
Add Custom pytest Marker to Ease Development (#2628)
Poolitzer efea686
Make BasePersistence Methods Abstract (#2624)
starry-shivam 104eb17
Refactor Initialization of Persistence Classes (#2604)
Bibo-Joshi ab262ae
Remove `__dict__` from `__slots__` and drop Python 3.6 (#2619, #2636)
harshil21 8b7cbcc
Remove day_is_strict argument of JobQueue.run_monthly (#2634)
iota-008 5630f98
Drop Non-CallbackContext API (#2617)
Poolitzer 09043a4
Fix Signatures and Improve test_official (#2643)
harshil21 d7a286c
Remove Deprecated Functionality (#2644)
Bibo-Joshi d652a86
Add User Friendly Type Check For Init Of {Inline, Reply}KeyboardMarku…
harshil21 bd1e28c
Refine Dispatcher.dispatch_error (#2660)
Bibo-Joshi a6673c8
Warnings Overhaul (#2662)
harshil21 b1017ef
Clear Up Import Policy (#2671)
Bibo-Joshi bf62537
Make InlineQuery.answer Raise ValueError (#2675)
Bibo-Joshi 2b4ab57
Doc Fixes (#2597)
Bibo-Joshi b630e1b
Move Defaults to telegram.ext (#2648)
Bibo-Joshi b0385c1
Update Notification Workflows (#2695)
Poolitzer 681393f
Pass Failing Jobs to Error Handlers (#2692)
Bibo-Joshi 2c44dc0
Improve Signature Inspection for Bot Methods (#2686)
harshil21 6965ae9
Handle Filepaths via the Pathlib Module (#2688)
eldbud 13433e3
Add Filters.update.edited (#2705)
PhilippFr 01be85f
Use Error Messages for Pylint Instead of Codes (#2700)
Piraty 7ba5b3a
Introduce Builder Pattern for Updater and Dispatcher (#2646)
Bibo-Joshi eec90a0
Mark Internal Modules As Private (#2687)
163d598
Accept File Paths for Updater/DispatcherBuilder.private_key (#2724)
Bibo-Joshi 1adc96c
Make Tests Agnostic of the CWD (#2727)
eldbud 38a6a6d
Refactor MRO of InputMedia* and Some File-Like Classes (#2717)
eldbud b24d7d8
Introduce Enums for telegram.constants (#2708)
Bibo-Joshi 5352a05
Introduce TelegramObject.set/get_bot (#2712)
zpavloudis 8f4105d
Remove Job.job_queue (#2740)
Bibo-Joshi 49d8c62
Drop `__dict__` from `Dispatcher.__slots__` (#2745)
Bibo-Joshi 36d09df
Update Exceptions for Immutable Attributes (#2749)
harshil21 bff5bc5
simply remove the Filters class
harshil21 4b49fe3
Apply KISS and update docs accordingly
harshil21 194e910
Start refactoring filters with __call__
harshil21 acdc66a
Use mimetypes module in filters where possible
harshil21 c42d4cd
apply KISS to self.name
harshil21 8488b2e
add shortcuts with allow_empty=True for ChatUserBase subclasses
harshil21 86ae349
start using check_update + fixes in Dice
harshil21 c81a087
Update Code Quality Dependencies (#2748)
harshil21 577a46d
few doc fixes + another fix for Dice
harshil21 426327a
Apply check_update for filters in handlers and update their docs
harshil21 3f2aaf4
filters docs overhaul + apply KISS more consistently
harshil21 2fa2b63
Get filter tests running!
harshil21 5f67544
Apply new filter syntax project wide + get all tests running!
harshil21 f307393
Update some more docs
harshil21 cd9d8f0
merge v14 + fix conflict
harshil21 070b14c
deepsource + other tests
harshil21 da57e02
Address most of the review
harshil21 98ae286
Convert partials to classes :(
harshil21 dbeb573
Add versionchanged and some doc fixes
harshil21 e6df7d0
some more dice name fixes
harshil21 b3fc965
Make USER, CHAT, VIA_BOT independent of _CUBF
harshil21 171e7ff
Convert `BaseFilter`'s `__new__` to `__init__`
harshil21 b74ac36
make docs consistent
harshil21 0964cce
resolve most of code review (mostly docs)
harshil21 04bb4cd
dice optimizations
harshil21 17f0ccd
changes to Message/UpdateFilter.check_update
harshil21 54ed706
remove filters.UpdateType.ALL and call super().check_update instead
harshil21 9522a60
Add check_update to docs and address review
harshil21 499388e
pre-commit
harshil21 fbfa8cc
use pylint ignore instead of type ignore
harshil21 d54ab3b
merge v14 + fix conflicts
harshil21 de5809f
fix more merge conflicts
harshil21 2964b08
sort filters alphabetically
harshil21 ec31aab
deepsource false positive
harshil21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.