messaging-api-messenger
Advanced tools
Changelog
0.4.7 / 2017-10-16
Changelog
0.4.2 / 2017-09-22
const { MessengerClient } = require('messaging-api-messenger');
const client = MessengerClient.connect(accessToken);
client.version; // "v2.10"
Changelog
0.4.1 / 2017-09-19
Changelog
0.4.0 / 2017-09-19
send
to sendMessage
LINE
to PascalCase Line
(follow convention from other modules), e.g. LineClient.connect
, Line.createText
.Example:
const { Line, LineClient } = require('messaging-api-line');
Changelog
0.3.5 / 2017-09-15
For example:
const { LINE } = require('messaging-api-line');
client.reply(REPLY_TOKEN, [
LINE.createText('Hello'),
LINE.createImage(
'https://example.com/original.jpg',
'https://example.com/preview.jpg'
),
LINE.createText('End'),
]);
Changelog
0.3.4 / 2017-09-13
sendBatch
:const { Messenger } = require('messaging-api-messenger');
client.sendBatch([
Messenger.createText(USER_ID, '1'),
Messenger.createText(USER_ID, '2'),
Messenger.createText(USER_ID, '3'),
Messenger.createText(USER_ID, '4'),
Messenger.createText(USER_ID, '5'),
]);
Changelog
0.3.1 / 2017-08-31
AttachmentPayload
to send cached attachment:client.sendImage(USER_ID, { attachment_id: '55688' });
client.sendAudio(USER_ID, { attachment_id: '55688' });
client.sendVideo(USER_ID, { attachment_id: '55688' });
client.sendFile(USER_ID, { attachment_id: '55688' });
Changelog
0.3.0 / 2017-08-29
turnTypingIndicatorsOn => typingOn
turnTypingIndicatorsOff => typingOff
Use tag
option instead:
client.sendText(USER_ID, 'Hello!', { tag: 'ISSUE_RESOLUTION' });
client.sendGenericTemplate(
USER_ID,
[
{
// ...
},
],
{ tag: 'ISSUE_RESOLUTION' }
);
topElementStyle
to options.top_element_style
in sendListTemplate
@6840ec7ratio
to options.image_aspect_ratio
in sendGenericTemplate
@701e717SlackClient
export, using SlackOAuthClient
or SlackWebhookClient
instead.getUserList
now returns object includes cursor.contact.firstName
to contact.first_name
, and contact.phoneNumber
to contact.phone_number
in sendContact
method.