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

Filters for Category and file types #1046

Merged
merged 9 commits into from Mar 16, 2018

Little Fix

  • Loading branch information...
code1mountain committed Mar 14, 2018
commit 27c0d2c534372b930dd1318636107adc93fd7fa9
Copy path View file
@@ -243,7 +243,7 @@ def __init__(self, filetype):
Args:
filetype (str, optional): mime_type of the media you want to filter"""
self.filetype = filetype
self.name = 'Filters.document.Filetype(\'{}\')'.format(self.filetype)
self.name = 'Filters.document.file_type(\'{}\')'.format(self.filetype)

def filter(self, message):
if message.document:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.