{"action":"created","comment":{"url":"https://api.github.com/repos/Chatie/wechaty/pulls/comments/132095891","pull_request_review_id":55139412,"id":132095891,"diff_hunk":"@@ -455,17 +468,22 @@ export class PuppetWeb extends Puppet {\n       destinationId = to.id\n     }\n \n-    const mediaId = await this.uploadMedia(message, destinationId)\n+    const { mediaId, mediaData } = await this.uploadMedia(message, destinationId)\n     const msgType = UtilLib.msgType(message.ext())\n \n+    mediaData.FileType = 7","path":"src/puppet-web/puppet-web.ts","position":null,"original_position":79,"commit_id":"750a42a2250b7f7a19fdbd9e31fd0e2260baaba0","original_commit_id":"62f9234bc226e921a99de6235a6bb44356806439","user":{"login":"lijiarui","id":6419514,"avatar_url":"https://avatars0.githubusercontent.com/u/6419514?v=4","gravatar_id":"","url":"https://api.github.com/users/lijiarui","html_url":"https://github.com/lijiarui","followers_url":"https://api.github.com/users/lijiarui/followers","following_url":"https://api.github.com/users/lijiarui/following{/other_user}","gists_url":"https://api.github.com/users/lijiarui/gists{/gist_id}","starred_url":"https://api.github.com/users/lijiarui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lijiarui/subscriptions","organizations_url":"https://api.github.com/users/lijiarui/orgs","repos_url":"https://api.github.com/users/lijiarui/repos","events_url":"https://api.github.com/users/lijiarui/events{/privacy}","received_events_url":"https://api.github.com/users/lijiarui/received_events","type":"User","site_admin":false},"body":"thanks!","created_at":"2017-08-09T05:56:55Z","updated_at":"2017-08-09T05:56:55Z","html_url":"https://github.com/Chatie/wechaty/pull/714#discussion_r132095891","pull_request_url":"https://api.github.com/repos/Chatie/wechaty/pulls/714","_links":{"self":{"href":"https://api.github.com/repos/Chatie/wechaty/pulls/comments/132095891"},"html":{"href":"https://github.com/Chatie/wechaty/pull/714#discussion_r132095891"},"pull_request":{"href":"https://api.github.com/repos/Chatie/wechaty/pulls/714"}}},"pull_request":{"url":"https://api.github.com/repos/Chatie/wechaty/pulls/714","id":134648565,"html_url":"https://github.com/Chatie/wechaty/pull/714","diff_url":"https://github.com/Chatie/wechaty/pull/714.diff","patch_url":"https://github.com/Chatie/wechaty/pull/714.patch","issue_url":"https://api.github.com/repos/Chatie/wechaty/issues/714","number":714,"state":"open","locked":false,"title":"fix(puppet-web): send any type file.","user":{"login":"binsee","id":5285894,"avatar_url":"https://avatars3.githubusercontent.com/u/5285894?v=4","gravatar_id":"","url":"https://api.github.com/users/binsee","html_url":"https://github.com/binsee","followers_url":"https://api.github.com/users/binsee/followers","following_url":"https://api.github.com/users/binsee/following{/other_user}","gists_url":"https://api.github.com/users/binsee/gists{/gist_id}","starred_url":"https://api.github.com/users/binsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binsee/subscriptions","organizations_url":"https://api.github.com/users/binsee/orgs","repos_url":"https://api.github.com/users/binsee/repos","events_url":"https://api.github.com/users/binsee/events{/privacy}","received_events_url":"https://api.github.com/users/binsee/received_events","type":"User","site_admin":false},"body":"Fix can't send pdf and more type file.\r\nNow, you can use `m.say(new MediaMessage(file))` send any type file.\r\n\r\nFix #710\r\n\r\n","created_at":"2017-08-08T12:32:30Z","updated_at":"2017-08-09T05:56:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"816e6fad2e64b19fd02eb74b56c2959c0fa52039","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mukaiu","id":7746790,"avatar_url":"https://avatars0.githubusercontent.com/u/7746790?v=4","gravatar_id":"","url":"https://api.github.com/users/mukaiu","html_url":"https://github.com/mukaiu","followers_url":"https://api.github.com/users/mukaiu/followers","following_url":"https://api.github.com/users/mukaiu/following{/other_user}","gists_url":"https://api.github.com/users/mukaiu/gists{/gist_id}","starred_url":"https://api.github.com/users/mukaiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mukaiu/subscriptions","organizations_url":"https://api.github.com/users/mukaiu/orgs","repos_url":"https://api.github.com/users/mukaiu/repos","events_url":"https://api.github.com/users/mukaiu/events{/privacy}","received_events_url":"https://api.github.com/users/mukaiu/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Chatie/wechaty/pulls/714/commits","review_comments_url":"https://api.github.com/repos/Chatie/wechaty/pulls/714/comments","review_comment_url":"https://api.github.com/repos/Chatie/wechaty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Chatie/wechaty/issues/714/comments","statuses_url":"https://api.github.com/repos/Chatie/wechaty/statuses/750a42a2250b7f7a19fdbd9e31fd0e2260baaba0","head":{"label":"binsee:fix-send-pdf-file","ref":"fix-send-pdf-file","sha":"750a42a2250b7f7a19fdbd9e31fd0e2260baaba0","user":{"login":"binsee","id":5285894,"avatar_url":"https://avatars3.githubusercontent.com/u/5285894?v=4","gravatar_id":"","url":"https://api.github.com/users/binsee","html_url":"https://github.com/binsee","followers_url":"https://api.github.com/users/binsee/followers","following_url":"https://api.github.com/users/binsee/following{/other_user}","gists_url":"https://api.github.com/users/binsee/gists{/gist_id}","starred_url":"https://api.github.com/users/binsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binsee/subscriptions","organizations_url":"https://api.github.com/users/binsee/orgs","repos_url":"https://api.github.com/users/binsee/repos","events_url":"https://api.github.com/users/binsee/events{/privacy}","received_events_url":"https://api.github.com/users/binsee/received_events","type":"User","site_admin":false},"repo":{"id":99690088,"name":"wechaty","full_name":"binsee/wechaty","owner":{"login":"binsee","id":5285894,"avatar_url":"https://avatars3.githubusercontent.com/u/5285894?v=4","gravatar_id":"","url":"https://api.github.com/users/binsee","html_url":"https://github.com/binsee","followers_url":"https://api.github.com/users/binsee/followers","following_url":"https://api.github.com/users/binsee/following{/other_user}","gists_url":"https://api.github.com/users/binsee/gists{/gist_id}","starred_url":"https://api.github.com/users/binsee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binsee/subscriptions","organizations_url":"https://api.github.com/users/binsee/orgs","repos_url":"https://api.github.com/users/binsee/repos","events_url":"https://api.github.com/users/binsee/events{/privacy}","received_events_url":"https://api.github.com/users/binsee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/binsee/wechaty","description":"Wechat for Bot. Powered by WebDriver / Node.js / TypeScript / Docker","fork":true,"url":"https://api.github.com/repos/binsee/wechaty","forks_url":"https://api.github.com/repos/binsee/wechaty/forks","keys_url":"https://api.github.com/repos/binsee/wechaty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binsee/wechaty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binsee/wechaty/teams","hooks_url":"https://api.github.com/repos/binsee/wechaty/hooks","issue_events_url":"https://api.github.com/repos/binsee/wechaty/issues/events{/number}","events_url":"https://api.github.com/repos/binsee/wechaty/events","assignees_url":"https://api.github.com/repos/binsee/wechaty/assignees{/user}","branches_url":"https://api.github.com/repos/binsee/wechaty/branches{/branch}","tags_url":"https://api.github.com/repos/binsee/wechaty/tags","blobs_url":"https://api.github.com/repos/binsee/wechaty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binsee/wechaty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binsee/wechaty/git/refs{/sha}","trees_url":"https://api.github.com/repos/binsee/wechaty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binsee/wechaty/statuses/{sha}","languages_url":"https://api.github.com/repos/binsee/wechaty/languages","stargazers_url":"https://api.github.com/repos/binsee/wechaty/stargazers","contributors_url":"https://api.github.com/repos/binsee/wechaty/contributors","subscribers_url":"https://api.github.com/repos/binsee/wechaty/subscribers","subscription_url":"https://api.github.com/repos/binsee/wechaty/subscription","commits_url":"https://api.github.com/repos/binsee/wechaty/commits{/sha}","git_commits_url":"https://api.github.com/repos/binsee/wechaty/git/commits{/sha}","comments_url":"https://api.github.com/repos/binsee/wechaty/comments{/number}","issue_comment_url":"https://api.github.com/repos/binsee/wechaty/issues/comments{/number}","contents_url":"https://api.github.com/repos/binsee/wechaty/contents/{+path}","compare_url":"https://api.github.com/repos/binsee/wechaty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binsee/wechaty/merges","archive_url":"https://api.github.com/repos/binsee/wechaty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binsee/wechaty/downloads","issues_url":"https://api.github.com/repos/binsee/wechaty/issues{/number}","pulls_url":"https://api.github.com/repos/binsee/wechaty/pulls{/number}","milestones_url":"https://api.github.com/repos/binsee/wechaty/milestones{/number}","notifications_url":"https://api.github.com/repos/binsee/wechaty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binsee/wechaty/labels{/name}","releases_url":"https://api.github.com/repos/binsee/wechaty/releases{/id}","deployments_url":"https://api.github.com/repos/binsee/wechaty/deployments","created_at":"2017-08-08T12:26:18Z","updated_at":"2017-08-08T12:26:20Z","pushed_at":"2017-08-09T02:25:37Z","git_url":"git://github.com/binsee/wechaty.git","ssh_url":"git@github.com:binsee/wechaty.git","clone_url":"https://github.com/binsee/wechaty.git","svn_url":"https://github.com/binsee/wechaty","homepage":"https://blog.chatie.io","size":2799,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Chatie:master","ref":"master","sha":"148be5a50ff000b9a8a8b0c9c32cfa2420d73013","user":{"login":"Chatie","id":25162437,"avatar_url":"https://avatars1.githubusercontent.com/u/25162437?v=4","gravatar_id":"","url":"https://api.github.com/users/Chatie","html_url":"https://github.com/Chatie","followers_url":"https://api.github.com/users/Chatie/followers","following_url":"https://api.github.com/users/Chatie/following{/other_user}","gists_url":"https://api.github.com/users/Chatie/gists{/gist_id}","starred_url":"https://api.github.com/users/Chatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chatie/subscriptions","organizations_url":"https://api.github.com/users/Chatie/orgs","repos_url":"https://api.github.com/users/Chatie/repos","events_url":"https://api.github.com/users/Chatie/events{/privacy}","received_events_url":"https://api.github.com/users/Chatie/received_events","type":"Organization","site_admin":false},"repo":{"id":57602001,"name":"wechaty","full_name":"Chatie/wechaty","owner":{"login":"Chatie","id":25162437,"avatar_url":"https://avatars1.githubusercontent.com/u/25162437?v=4","gravatar_id":"","url":"https://api.github.com/users/Chatie","html_url":"https://github.com/Chatie","followers_url":"https://api.github.com/users/Chatie/followers","following_url":"https://api.github.com/users/Chatie/following{/other_user}","gists_url":"https://api.github.com/users/Chatie/gists{/gist_id}","starred_url":"https://api.github.com/users/Chatie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chatie/subscriptions","organizations_url":"https://api.github.com/users/Chatie/orgs","repos_url":"https://api.github.com/users/Chatie/repos","events_url":"https://api.github.com/users/Chatie/events{/privacy}","received_events_url":"https://api.github.com/users/Chatie/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Chatie/wechaty","description":"Wechat for Bot. Powered by WebDriver / Node.js / TypeScript / Docker","fork":false,"url":"https://api.github.com/repos/Chatie/wechaty","forks_url":"https://api.github.com/repos/Chatie/wechaty/forks","keys_url":"https://api.github.com/repos/Chatie/wechaty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chatie/wechaty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chatie/wechaty/teams","hooks_url":"https://api.github.com/repos/Chatie/wechaty/hooks","issue_events_url":"https://api.github.com/repos/Chatie/wechaty/issues/events{/number}","events_url":"https://api.github.com/repos/Chatie/wechaty/events","assignees_url":"https://api.github.com/repos/Chatie/wechaty/assignees{/user}","branches_url":"https://api.github.com/repos/Chatie/wechaty/branches{/branch}","tags_url":"https://api.github.com/repos/Chatie/wechaty/tags","blobs_url":"https://api.github.com/repos/Chatie/wechaty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chatie/wechaty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chatie/wechaty/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chatie/wechaty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chatie/wechaty/statuses/{sha}","languages_url":"https://api.github.com/repos/Chatie/wechaty/languages","stargazers_url":"https://api.github.com/repos/Chatie/wechaty/stargazers","contributors_url":"https://api.github.com/repos/Chatie/wechaty/contributors","subscribers_url":"https://api.github.com/repos/Chatie/wechaty/subscribers","subscription_url":"https://api.github.com/repos/Chatie/wechaty/subscription","commits_url":"https://api.github.com/repos/Chatie/wechaty/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chatie/wechaty/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chatie/wechaty/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chatie/wechaty/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chatie/wechaty/contents/{+path}","compare_url":"https://api.github.com/repos/Chatie/wechaty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chatie/wechaty/merges","archive_url":"https://api.github.com/repos/Chatie/wechaty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chatie/wechaty/downloads","issues_url":"https://api.github.com/repos/Chatie/wechaty/issues{/number}","pulls_url":"https://api.github.com/repos/Chatie/wechaty/pulls{/number}","milestones_url":"https://api.github.com/repos/Chatie/wechaty/milestones{/number}","notifications_url":"https://api.github.com/repos/Chatie/wechaty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chatie/wechaty/labels{/name}","releases_url":"https://api.github.com/repos/Chatie/wechaty/releases{/id}","deployments_url":"https://api.github.com/repos/Chatie/wechaty/deployments","created_at":"2016-05-01T14:36:45Z","updated_at":"2017-08-09T03:28:21Z","pushed_at":"2017-08-09T03:28:25Z","git_url":"git://github.com/Chatie/wechaty.git","ssh_url":"git@github.com:Chatie/wechaty.git","clone_url":"https://github.com/Chatie/wechaty.git","svn_url":"https://github.com/Chatie/wechaty","homepage":"https://blog.chatie.io","size":2780,"stargazers_count":1509,"watchers_count":1509,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":283,"mirror_url":null,"open_issues_count":83,"forks":283,"open_issues":83,"watchers":1509,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Chatie/wechaty/pulls/714"},"html":{"href":"https://github.com/Chatie/wechaty/pull/714"},"issue":{"href":"https://api.github.com/repos/Chatie/wechaty/issues/714"},"comments":{"href":"https://api.github.com/repos/Chatie/wechaty/issues/714/comments"},"review_comments":{"href":"https://api.github.com/repos/Chatie/wechaty/pulls/714/comments"},"review_comment":{"href":"https://api.github.com/repos/Chatie/wechaty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Chatie/wechaty/pulls/714/commits"},"statuses":{"href":"https://api.github.com/repos/Chatie/wechaty/statuses/750a42a2250b7f7a19fdbd9e31fd0e2260baaba0"}}}}
{"actor":{"display_login":"lijiarui"}}