Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bottender

Package Overview
Dependencies
Maintainers
6
Versions
215
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bottender - npm Package Versions

1
22

0.15.11

Diff

Changelog

Source

0.15.11 / 2018-11-07

messenger

  • [new] Add skipAppSecretProof option to MessengerBot and MessengerConnector:
const bot = new MessengerBot({
  accessToken: ACCESS_TOKEN,
  appSecret: APP_SECRET,
  skipAppSecretProof: true,
});
chentsulin
published 0.15.10 •

Changelog

Source

0.15.10 / 2018-11-02

  • [new] platform bots: add 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',
});

messenger

  • [fix] update Messenger profile_pic check logic
  • [fix] fix persona cli error messages
chentsulin
published 0.15.9 •

Changelog

Source

0.15.9 / 2018-10-26

messenger

  • [new] Add CLI commands for Messenger persona API:

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>
chentsulin
published 0.15.8 •

Changelog

Source

0.15.8 / 2018-10-18

  • [new] Add 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();
  • [deps] update messaging-apis (which support messenger persona api)
chentsulin
published 0.15.7 •

Changelog

Source

0.15.7 / 2018-09-19

  • [new] upgrade messaging-apis, so now we can use DEBUG env variable to enable request debugger:
DEBUG=messaging-api*
  • [fix] fix ConsoleBot recognize symbol as _methodMissing (#333)
  • [deps] upgrade dependencies
chentsulin
published 0.15.6 •

Changelog

Source

0.15.6 / 2018-08-28

line

  • [new] make sure all of methods support quick reply (#331):
context.sendText('hahaha', {
  quickReply: {
    items: [
      {
        type: 'action',
        action: {
          type: 'cameraRoll',
          label: 'Send photo',
        },
      },
      {
        type: 'action',
        action: {
          type: 'camera',
          label: 'Open camera',
        },
      },
    ],
  },
});

telegram

  • [new] add isReplyToMessage, replyToMessage (#330):
event.isReplyToMessage;
event.replyToMessage;
chentsulin
published 0.15.5 •

Changelog

Source

0.15.5 / 2018-08-27

slack

  • [fix] get correct channel id from more slack event format
chentsulin
published 0.15.4 •

Changelog

Source

0.15.4 / 2018-08-22

  • [new] add debugger for sync response
DEBUG=bottender:response

print:

bottender:response Outgoing response:
bottender:response {
bottender:response   body: {
bottender:response   }
bottender:response }

Useful when debugging synchronized connectors.

console

  • [fix] makes context.platform consistent with context.session.platform
chentsulin
published 0.15.3 •

Changelog

Source

0.15.3 / 2018-08-21

console

  • [new] Add mockPlatform option:
const bot = new ConsoleBot({
  fallbackMethods: true,
  mockPlatform: 'messenger',
});

bot.connector.platform; // 'messenger'
bot.onEvent((context) => {
  context.platform; // 'messenger'
});
chentsulin
published 0.15.2 •

Changelog

Source

0.15.2 / 2018-08-16

messenger

  • [new] Add context.isThreadOwner():
await context.isThreadOwner(); // true | false
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc