![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bot-messenger-node
Advanced tools
A Node.js toolkit facilitating the seamless incorporation and effective deployment of the Messenger API in crafting responsive chatbots.
Node Wrapper to various APIs from Facebook Messenger Platform.
Various components used when sending messages in Facebook Messenger are wrapped into Python objects to make them reusable and easy to use.
npm install bot-messenger-node
const { SendApi } = require('bot-messenger-node');
const sendApi = new SendApi('<page_access_token>');
const message = '<message>';
const recipientId = '<recipient_id>';
sendApi.send_text(message, recipientId)
Note: From Facebook regarding User IDs
These ids are page-scoped. These ids differ from those returned from Facebook Login apps which are app-scoped. You must use ids retrieved from a Messenger integration for this page in order to function properly.
Generic Template Messages allows you to add cool elements like images, text all in a single bubble.
const { SendApi, Elements, Element, Buttons, Button, POSTBACK } = require('bot-messenger-node');
const sendApi = new SendApi('<page_access_token>');
const elements = new Elements();
const buttons = new Buttons();
const button = new Button(POSTBACK, "My button");
buttons.add_button(button.getContent());
const element = new Element("My element", "The element's subtitle", '<image_url>', buttons.get_content());
elements.add_element(element.getContent());
sendApi.send_generic(elements.getContent(), '<recipient_id>')
const SendApi = require('bot-messenger-node');
const sendApi = new SendApi('<page_access_token>');
// To send an image
sendApi.send_image('<image_url>', '<recipient_id>')
// To send an audio
sendApi.send_audio('<audio_url>', '<recipient_id>')
// To send a video
sendApi.send_video('<video_url>', '<recipient_id>')
// To send a file
sendApi.send_file('<file_url>', '<recipient_id>')
FAQs
A Node.js toolkit facilitating the seamless incorporation and effective deployment of the Messenger API in crafting responsive chatbots.
The npm package bot-messenger-node receives a total of 0 weekly downloads. As such, bot-messenger-node popularity was classified as not popular.
We found that bot-messenger-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.