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

CustomFilterCommand hits error #179

Open
Vincenttbk opened this issue May 17, 2017 · 2 comments
Open

CustomFilterCommand hits error #179

Vincenttbk opened this issue May 17, 2017 · 2 comments

Comments

@Vincenttbk
Copy link

Im trying to use CustomFilterCommand class, but when Im trying to create a new CUstomFilterCommand Object I get the following error

TypeError: CustomFilterCommand is not a constructor

I followed the instruction in the readme, is there any action Im missing?

const CustomFilterCommand = Telegram.CustomFilterCommand;

.when(
new CustomFilterCommand($ => { var caption = $.caption;
return caption.match(compareText);
}, 'customCommand'),
new CustomController()
)

@alikianinejad
Copy link

i have same problem how can solve that ?

@Marjona6
Copy link

Same problem. :(

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

No branches or pull requests

3 participants