Open Vincenttbk opened 7 years ago
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() )
i have same problem how can solve that ?
Same problem. :(
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() )