Releases: bottenderjs/messaging-apis
Releases · bottenderjs/messaging-apis
0.7.17 / 2020-04-08
messaging-api-messenger
- [fix] support up to 13 quick replies instead of 11.
messaging-api-line
- [fix] use data domain to get media and menu content (#557)
0.8.4 / 2019-09-29
messaging-api-wechat
- fix(WechatClient): apply throwErrorIfAny to getAccessToken #502
0.8.3 / 2019-09-28
0.8.3 / 2019-09-28
messaging-api-line
- [fix] handle arraybuffer correctly in
retrieveMessageContent
0.8.2 / 2019-09-05
- [fix] avoid printing undefined outgoing request body in
onRequest
.
0.8.1 / 2019-08-27
- [deps] update packages
- [deps] use babel 7 instead of babel 6 internally
0.8.0 / 2019-08-26
messaging-api-messenger
- [breaking] remove deprecated
sendAirlineFlightUpdateTemplate
- [breaking] remove deprecated createXxxx methods on
MessengerBatch
- [breaking] remove deprecated insight methods
getActiveThreads
andgetReportedConversationsByReportType
- [new] update default graph api version to
v4
- [new] add
getThreadOwner
inMessengerBatch
- [deprecated] add warning for
createListTemplate
andcreateOpenGraphTemplate
- [deprecated] add waning to broadcast methods
createMessageCreative
,sendBroadcastMessage
,cancelBroadcast
,getBroadcast
,startReachEstimation
,getReachEstimate
,getBroadcastMessagesSent
andgenerateMessengerCode
. - [fix] add missing
options
to messenger batch functions 047db83 - [fix] parse batch response body
messaging-api-line
- [breaking] refine rich menu getter functions error handling when getting 404
- [breaking] return null when no user found (#445)
0.7.16 / 2019-01-29
messaging-api-messenger
- [new] add
options.fields
togetUserProfile
:
client
.getUserProfile(USER_ID, {
fields: [
`id`,
`name`,
`first_name`,
`last_name`,
`profile_pic`,
`locale`,
`timezone`,
`gender`,
],
})
.then(user => {
console.log(user);
// {
// id: '5566'
// first_name: 'Johnathan',
// last_name: 'Jackson',
// profile_pic: 'https://example.com/pic.png',
// locale: 'en_US',
// timezone: 8,
// gender: 'male',
// }
});
- [new] implement
client.getSubscriptions
:
client.getSubscriptions({
access_token: APP_ACCESS_TOKEN,
});
// or
client.getSubscriptions({
access_token: `${APP_ID}|${APP_SECRET}`,
});
- [new] implement
client.getPageSubscription
:
client.getPageSubscription({
access_token: APP_ACCESS_TOKEN,
});
// or
client.getPageSubscription({
access_token: `${APP_ID}|${APP_SECRET}`,
});
0.7.15 / 2018-11-12
messaging-api-messenger
- [new] implement
client.debugToken
:
client.debugToken().then(pageInfo => {
console.log(pageInfo);
// {
// app_id: '000000000000000',
// application: 'Social Cafe',
// expires_at: 1352419328,
// is_valid: true,
// issued_at: 1347235328,
// scopes: ['email', 'user_location'],
// user_id: 1207059,
// }
});
messaging-api-line
- [new] add
client.multicastFlex
:
client.multicastFlex([USER_ID], 'this is a flex', {
type: 'bubble',
header: {
type: 'box',
layout: 'vertical',
contents: [
{
type: 'text',
text: 'Header text',
},
],
},
hero: {
type: 'image',
url: 'https://example.com/flex/images/image.jpg',
},
body: {
type: 'box',
layout: 'vertical',
contents: [
{
type: 'text',
text: 'Body text',
},
],
},
footer: {
type: 'box',
layout: 'vertical',
contents: [
{
type: 'text',
text: 'Footer text',
},
],
},
styles: {
comment: 'See the example of a bubble style object',
},
});
- [new] support
video
for imagemap:
const res = await client.replyImagemap(REPLY_TOKEN, 'this is an imagemap', {
baseUrl: 'https://example.com/bot/images/rm001',
baseSize: {
height: 1040,
width: 1040,
},
video: {
originalContentUrl: 'https://example.com/video.mp4',
previewImageUrl: 'https://example.com/video_preview.jpg',
area: {
x: 0,
y: 0,
width: 1040,
height: 585,
},
externalLink: {
linkUri: 'https://example.com/see_more.html',
label: 'See More',
},
},
actions: [
{
type: 'uri',
linkUri: 'https://example.com/',
area: {
x: 0,
y: 0,
width: 520,
height: 1040,
},
},
{
type: 'message',
text: 'hello',
area: {
x: 520,
y: 0,
width: 520,
height: 1040,
},
},
],
});
0.7.14 / 2018-11-07
messaging-api-messenger
- [new] Add
skipAppSecretProof
option toMessengerClient
:
const client = MessengerClient.connect({
accessToken: ACCESS_TOKEN,
appSecret: APP_SECRET,
skipAppSecretProof: true,
});
0.7.13 / 2018-10-30
messaging-api-messenger
- [new] Add
MessengerClient.appSecret
getter:
const client = MessengerClient.connect({
appSecret: 'APP_SECRET',
});
client.appSecret; // 'APP_SECRET'