botframework
Advanced tools
Comparing version 0.16.0 to 0.17.0
@@ -149,2 +149,16 @@ "use strict"; | ||
break; | ||
case interfaces_2.FB_ATTACHMENT_TYPE.AUDIO: | ||
var audioMessage = { | ||
user: user, link: { url: attachment.payload.url }, | ||
type: interfaces_1.BOT_REQUEST_TYPE.FACEBOOK | ||
}; | ||
this.botController.audioMessage(audioMessage, reply) || null; | ||
break; | ||
case interfaces_2.FB_ATTACHMENT_TYPE.VIDEO: | ||
var videoMessage = { | ||
user: user, link: { url: attachment.payload.url }, | ||
type: interfaces_1.BOT_REQUEST_TYPE.FACEBOOK | ||
}; | ||
this.botController.videoMessage(videoMessage, reply) || null; | ||
break; | ||
case interfaces_2.FB_ATTACHMENT_TYPE.LOCATION: | ||
@@ -151,0 +165,0 @@ var location_1 = { |
@@ -74,2 +74,4 @@ import * as Promise from 'bluebird'; | ||
imageMessage?(request: IBotRequest, reply: IBotReply): void; | ||
audioMessage?(request: IBotRequest, reply: IBotReply): void; | ||
videoMessage?(request: IBotRequest, reply: IBotReply): void; | ||
linkMessage?(request: IBotRequest, reply: IBotReply): void; | ||
@@ -76,0 +78,0 @@ locationMessage?(request: IBotRequest, reply: IBotReply): void; |
{ | ||
"name": "botframework", | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"description": "Framework for messaging bots", | ||
@@ -43,2 +43,2 @@ "main": "./dist/es5/src/bot.js", | ||
} | ||
} | ||
} |
@@ -142,2 +142,16 @@ import {IBotController, BOT_REQUEST_TYPE, IBotSettings, IBotUser, IBotRequest, IBotReply, IBotReplyListItemAction, IBotReplyListItem} from '../interfaces' | ||
break; | ||
case FB_ATTACHMENT_TYPE.AUDIO: | ||
let audioMessage = { | ||
user, link: {url: attachment.payload.url}, | ||
type: BOT_REQUEST_TYPE.FACEBOOK | ||
}; | ||
this.botController.audioMessage(audioMessage, reply) || null; | ||
break; | ||
case FB_ATTACHMENT_TYPE.VIDEO: | ||
let videoMessage = { | ||
user, link: {url: attachment.payload.url}, | ||
type: BOT_REQUEST_TYPE.FACEBOOK | ||
}; | ||
this.botController.videoMessage(videoMessage, reply) || null; | ||
break; | ||
case FB_ATTACHMENT_TYPE.LOCATION: | ||
@@ -144,0 +158,0 @@ let location: IBotRequest = { |
@@ -96,2 +96,4 @@ import * as Promise from 'bluebird'; | ||
imageMessage?(request: IBotRequest, reply: IBotReply): void; | ||
audioMessage?(request: IBotRequest, reply: IBotReply): void; | ||
videoMessage?(request: IBotRequest, reply: IBotReply): void; | ||
linkMessage?(request: IBotRequest, reply: IBotReply): void; | ||
@@ -98,0 +100,0 @@ locationMessage?(request: IBotRequest, reply: IBotReply): void; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
787895
64
15816