messaging-api-slack
Advanced tools
Changelog
0.6.10 / 2018-01-12
postEphemeral
method:client.postEphemeral('C8763', 'U56781234', { attachments: [someAttachments] });
client.callMethod('chat.postMessage', {
token: 'custom token',
channel: CHANNEL,
text: 'hello',
});
Changelog
0.6.0 / 2017-12-07
client.getHTTPClient()
use client.axios
instead #236is_reusable
to false when upload attachment #221getGetStartedButton -> getGetStarted
setGetStartedButton -> setGetStarted
deleteGetStartedButton -> deleteGetStarted
getGreetingText -> getGreeting
setGreetingText -> setGreeting
deleteGreetingText -> deleteGreeting
getDomainWhitelist -> getWhitelistedDomains
setDomainWhitelist -> setWhitelistedDomains
deleteDomainWhitelist -> deleteWhitelistedDomains
getChatExtensionHomeURL -> getHomeURL
setChatExtensionHomeURL -> setHomeURL
deleteChatExtensionHomeURL -> deleteHomeURL
answerInlineQuery
:client.answerInlineQuery(
'INLINE_QUERY_ID',
[
{
type: 'photo',
id: 'UNIQUE_ID',
photo_file_id: 'FILE_ID',
title: 'PHOTO_TITLE',
},
{
type: 'audio',
id: 'UNIQUE_ID',
audio_file_id: 'FILE_ID',
caption: 'AUDIO_TITLE',
},
],
{
cache_time: 1000,
}
);
Changelog
0.5.16 / 2017-12-05
[new] Add client.accessToken
getter
[new] Support pass message object to postMessage
:
client.postMessage('C8763', { text: 'Hello!' });
client.postMessage('C8763', { attachments: [someAttachments] });
client.postMessage('C8763', { text: 'Hello!' }, { as_user: true });
Changelog
0.5.7 / 2017-11-09
A large update to support Messenger Platform 2.2. 🎉
Messenger Team has created a messaging_type
property which is required in all requests to the send API. You can send it with messaging_type
option:
client.sendText(USER_ID, 'Awesome!', { messaging_type: 'RESPONSE' });
Available messaging types:
UPDATE
as defaultRESPONSE
using { messaging_type: 'RESPONSE' }
optionsMESSAGE_TAG
using { tag: 'ANY_TAG' }
optionsNON_PROMOTIONAL_SUBSCRIPTION
using { messaging_type: 'NON_PROMOTIONAL_SUBSCRIPTION' }
optionsTwo additional tags, PAIRING_UPDATE
and APPLICATION_UPDATE
, has been supported by passing as option:
client.sendGenericTemplate(
USER_ID,
[
{
//...
},
],
{ tag: 'PAIRING_UPDATE' }
);
client.sendGenericTemplate(
USER_ID,
[
{
//...
},
],
{ tag: 'APPLICATION_UPDATE' }
);
<br />Changelog
0.5.4 / 2017-10-30
See more details in LINE Official docs.