remixz/messenger-bot

Add support for uploading files

Open

#22 创建于 2016年7月1日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (227 fork)batch import
enhancementhelp wantedstarter

仓库指标

Star
 (1,061 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Facebook just recently added the ability to upload files (images, audio, videos, or a generic file) for a message, instead of having to specify a URL for an attachment.

They all share the same format of it being a multipart POST form, with the file being under the key of filedata. For our sendMessage / reply, we should have some sort of special key in the payload that accepts the same inputs as request does for multipart forms (https://github.com/request/request#forms), and is then added to the request as filedata.

贡献者指南