telegraf-wit icon indicating copy to clipboard operation
telegraf-wit copied to clipboard

wit.ai middleware for Telegraf

Results 5 telegraf-wit issues
Sort by recently updated
recently updated
newest added

Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project. ![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=node-fetch&from_version=1.7.3&to_version=2.6.7&pr_id=0cb37f1d-303e-4aed-adc4-80e10f7df188&visibility=true&has_feature_flag=false) #### Changes included in this PR - Changes to...

Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project. ![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=node-fetch&from_version=1.7.3&to_version=2.6.1&pr_id=7b1c5f8c-f14b-4b06-9ef7-8497e9fc9b17&visibility=true&has_feature_flag=false) #### Changes included in this PR - Changes to...

Hello I try to update example docs. I have try with method `getMeaning` and has an error the method has been change to `meaning`. ![image](https://user-images.githubusercontent.com/4416419/83966548-fe427700-a8e4-11ea-9666-e568eefb1b39.png)

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

To allow setting a proxy I've added the use of the `agent` option in the following two sections of code https://github.com/telegraf/telegraf-wit/blob/94534277cdbb0ff787d11fc6d0999eb1b564db58/lib/wit.js#L23-L29 https://github.com/telegraf/telegraf-wit/blob/94534277cdbb0ff787d11fc6d0999eb1b564db58/lib/wit.js#L40-L47 They now look like ```js return fetch(url, {...