Skip to content
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

Use less space in the code #387

Merged
merged 4 commits into from
Jun 21, 2024
Merged

Use less space in the code #387

merged 4 commits into from
Jun 21, 2024

Conversation

2ei
Copy link
Contributor

@2ei 2ei commented Jun 20, 2024

Using less space in notes.py/filters.py by using Message.reply_cached_media ( it's automatically detected the media type from it's file_id ), and using Message.media.value to detect the media type when add new note/filter instead of add a condition for each media type.

Note:

I know that the code style should be in "black" style, but you did not specify the code format, i suggest to add it to workflows.

@alissonlauffer alissonlauffer merged commit 6b9f605 into AmanoTeam:main Jun 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants