bottender
Advanced tools
Changelog
0.15.11 / 2018-11-07
skipAppSecretProof
option to MessengerBot
and MessengerConnector
:const bot = new MessengerBot({
accessToken: ACCESS_TOKEN,
appSecret: APP_SECRET,
skipAppSecretProof: true,
});
Changelog
0.15.10 / 2018-11-02
origin
option for testing purpose:new MessengerBot({
// ...
origin: 'https://mydummytestserver.com',
});
new LineBot({
// ...
origin: 'https://mydummytestserver.com',
});
new SlackBot({
// ...
origin: 'https://mydummytestserver.com',
});
new ViberBot({
// ...
origin: 'https://mydummytestserver.com',
});
new TelegramBot({
// ...
origin: 'https://mydummytestserver.com',
});
Changelog
0.15.9 / 2018-10-26
List all personas:
$ bottender messenger persona list
Create a new persona with name and profile picture url:
$ bottender messenger persona create --name <PERSONA_NAME> --pic <PROFILE_IMAGE_URL>
Get persona by persona ID:
$ bottender messenger persona get --id <PERSONA_ID>
Delete persona by persona ID:
$ bottender messenger persona delete --id <PERSONA_ID>
Changelog
0.15.8 / 2018-10-18
sessionStore.all()
to fetch all of sessions from the store:// for those session stores
const sessionStore = new MemorySessionStore(500);
const sessionStore = new MongoSessionStore('mongodb://localhost:27017/');
const sessionStore = new FileSessionStore();
const sessionStore = new RedisSessionStore();
const sessions = await sessionStore.all();
messaging-apis
(which support messenger persona api)Changelog
0.15.7 / 2018-09-19
messaging-apis
, so now we can use DEBUG
env variable to enable request debugger:DEBUG=messaging-api*
ConsoleBot
recognize symbol as _methodMissing
(#333)Changelog
0.15.6 / 2018-08-28
context.sendText('hahaha', {
quickReply: {
items: [
{
type: 'action',
action: {
type: 'cameraRoll',
label: 'Send photo',
},
},
{
type: 'action',
action: {
type: 'camera',
label: 'Open camera',
},
},
],
},
});
isReplyToMessage
, replyToMessage
(#330):event.isReplyToMessage;
event.replyToMessage;
Changelog
0.15.5 / 2018-08-27
Changelog
0.15.4 / 2018-08-22
DEBUG=bottender:response
print:
bottender:response Outgoing response:
bottender:response {
bottender:response body: {
bottender:response }
bottender:response }
Useful when debugging synchronized connectors.
context.platform
consistent with context.session.platform
Changelog
0.15.3 / 2018-08-21
mockPlatform
option:const bot = new ConsoleBot({
fallbackMethods: true,
mockPlatform: 'messenger',
});
bot.connector.platform; // 'messenger'
bot.onEvent((context) => {
context.platform; // 'messenger'
});
Changelog
0.15.2 / 2018-08-16
context.isThreadOwner()
:await context.isThreadOwner(); // true | false