Skip to content

Releases: bottenderjs/messaging-apis

0.7.17 / 2020-04-08

08 Apr 05:39
Compare
Choose a tag to compare

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

29 Sep 09:40
Compare
Choose a tag to compare

messaging-api-wechat

  • fix(WechatClient): apply throwErrorIfAny to getAccessToken #502

0.8.3 / 2019-09-28

28 Sep 05:56
Compare
Choose a tag to compare

0.8.3 / 2019-09-28

messaging-api-line

  • [fix] handle arraybuffer correctly in retrieveMessageContent

0.8.2 / 2019-09-05

05 Sep 07:18
Compare
Choose a tag to compare
  • [fix] avoid printing undefined outgoing request body in onRequest.

0.8.1 / 2019-08-27

27 Aug 04:09
Compare
Choose a tag to compare
  • [deps] update packages
  • [deps] use babel 7 instead of babel 6 internally

0.8.0 / 2019-08-26

26 Aug 10:41
Compare
Choose a tag to compare

messaging-api-messenger

  • [breaking] remove deprecated sendAirlineFlightUpdateTemplate
  • [breaking] remove deprecated createXxxx methods on MessengerBatch
  • [breaking] remove deprecated insight methods getActiveThreads and getReportedConversationsByReportType
  • [new] update default graph api version to v4
  • [new] add getThreadOwner in MessengerBatch
  • [deprecated] add warning for createListTemplate and createOpenGraphTemplate
  • [deprecated] add waning to broadcast methods createMessageCreative, sendBroadcastMessage, cancelBroadcast, getBroadcast, startReachEstimation, getReachEstimate, getBroadcastMessagesSent and generateMessengerCode.
  • [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

29 Jan 05:53
Compare
Choose a tag to compare

messaging-api-messenger

  • [new] add options.fields to getUserProfile:
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

12 Nov 15:52
Compare
Choose a tag to compare

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

07 Nov 11:02
Compare
Choose a tag to compare

messaging-api-messenger

  • [new] Add skipAppSecretProof option to MessengerClient:
const client = MessengerClient.connect({
  accessToken: ACCESS_TOKEN,
  appSecret: APP_SECRET,
  skipAppSecretProof: true,
});

0.7.13 / 2018-10-30

07 Nov 11:01
Compare
Choose a tag to compare

messaging-api-messenger

  • [new] Add MessengerClient.appSecret getter:
const client = MessengerClient.connect({
  appSecret: 'APP_SECRET',
});

client.appSecret; // 'APP_SECRET'