telegraf / telegraf-wit

wit.ai middleware for Telegraf
MIT License
34 stars 5 forks source link

Obsolete example? #2

Open rlogiacco opened 6 years ago

rlogiacco commented 6 years ago

The Telegraf object doesn't seem to have the function referenced in the example below, I overcome this problem by adding telegraf-session-local and creating a LocalSession instance.

https://github.com/telegraf/telegraf-wit/blob/93d8d89ba87039ddc8d73d41c3fb1858121004b2/examples/wit-bot.js#L8

QzSG commented 6 years ago

When I first create my bot I wanted to use this repo too but the examples never did work. So I ended up using the official wit.ai node library to implement wit integration myself, honestly I am not sure if there is anyone still looking at this repo. Doesn't seem to be updated

diegoatsv commented 4 years ago

@QzSG do you have an example of the implementation that you created ?