Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Attachment Upload API method #90

Merged
merged 3 commits into from
Jun 9, 2018
Merged

Add Attachment Upload API method #90

merged 3 commits into from
Jun 9, 2018

Conversation

baudev
Copy link
Contributor

@baudev baudev commented Jun 5, 2018

Add the method getAttachmentUploadId() which allows sending files with external urls. It uses the Facebook Attachment Upload API.

You can use it as below:

bot.getAttachmentUploadId("https://images.pexels.com/photos/63324/california-road-highway-mountains-63324.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260", true, "image", (err, body) => {
    // ...
});

Add the method `getAttachmentUploadId()` which allows sending files with external urls. It uses the Facebook Attachment Upload API.
@eXeDK eXeDK merged commit 9cb5543 into remixz:master Jun 9, 2018
@baudev baudev deleted the baudev-upload_files_api branch June 11, 2018 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants