botbuilder-line
Bot Framework connector to Line, just better.
Setup
const express = builder = bodyParser = ;var connector = appId: processenvappid appPassword: processenvappkey bot = connector; const lineConnector = channelSecret: "channel secret" channelAccessToken: "access token" debug: false // Switch to true for a bunch of console spam;bot; // Use "directline" so we can cheat BotBuilder var server = ;server; // Requiredserver;server; bot;
What works
Receiving events
Just the message
event.
Sending messages
- Image, Video, Audio as attachments
- Hero card (List (max 4 buttons) and carousel (max 10 cards x 3 buttons))
- Keyboard buttons
Note
Line API has a lot of super tight limits (Such as: Max 4 buttons on a "Buttons" message, or Max 3 buttons on each card of a "carousel" message, maximum 10 cards per carousel, etc). You will need to change your code (This connector can't convert everything) according to the documentation.