Naltox / telegram-node-bot

Node module for creating Telegram bots.
MIT License
723 stars 143 forks source link

CustomFilterCommand hits error #179

Open Vincenttbk opened 7 years ago

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

alikianinejad commented 7 years ago

i have same problem how can solve that ?

Marjona6 commented 6 years ago

Same problem. :(