telegram-node-bot icon indicating copy to clipboard operation
telegram-node-bot copied to clipboard

CustomFilterCommand hits error

Open Vincenttbk opened this issue 7 years ago • 2 comments

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() )

Vincenttbk avatar May 17 '17 13:05 Vincenttbk

i have same problem how can solve that ?

alikianinejad avatar Jul 03 '17 11:07 alikianinejad

Same problem. :(

Marjona6 avatar Feb 23 '18 10:02 Marjona6