![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
botbuilder-facebook-quick-replies
Advanced tools
Provides an easy way to add Facebook Quick Replies to a message from bot to user with just one line of code.
###Short sample
const quick = require('botbuilder-facebook-quick-replies');
let message = new builder.Message(session)
.text('I am a bot. Press buttons below.');
quick.replies(message, ['Yes', 'No']);
session.send(message);
###What's it for?
This package provides a way to add Facebook Quick Replies to your bot's message. It works with bots written in Node.js using Microsoft Bot Framework (see the botbuilder
package).
It supports plain-text buttons, as well as buttons with different text and underlying value. Images on quick reply buttons are not yet supported.
At the top of your file, add:
const builder = require('botbuilder');
const quick = require('botbuilder-facebook-quick-replies');
Then, when you are creating a message within a dialog:
// Create a plaintext message as usual:
let message = new builder.Message(session)
.text('What do you think?');
// Now add the quick replies:
quick.replies(message, ['Cool!', 'Not bad!']);
// And send it to the user:
session.send(message);
This also works fine when your message contains attachments (like HeroCard
s, rather than just plain text).
This is helpful when the button must tell the bot some additional parameters.
// Create a plaintext message as usual:
let message = new builder.Message(session)
.text('Do you want to buy this product?');
// Now add the quick replies:
quick.replies(message, [
{ text: 'Buy Now', value: 'BUY #81571' },
{ text: 'Save for later', value 'SAVE #81571' },
]);
// And send it to the user:
session.send(message);
In this case, when the user clicks the Buy Now button, the message that the bot will actually receive is 'BUY #81571'.
###Comments and suggestions If you have any comments, contact me here: https://github.com/catcher-in-the-try/
FAQs
Provides an easy way to add Facebook Quick Replies to a message from bot to user with just one line of code.
The npm package botbuilder-facebook-quick-replies receives a total of 0 weekly downloads. As such, botbuilder-facebook-quick-replies popularity was classified as not popular.
We found that botbuilder-facebook-quick-replies demonstrated a not healthy version release cadence and project activity because the last version was released 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.