{"action":"closed","number":52,"pull_request":{"url":"https://api.github.com/repos/hyperoslo/facebook-messenger/pulls/52","id":78350175,"html_url":"https://github.com/hyperoslo/facebook-messenger/pull/52","diff_url":"https://github.com/hyperoslo/facebook-messenger/pull/52.diff","patch_url":"https://github.com/hyperoslo/facebook-messenger/pull/52.patch","issue_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/issues/52","number":52,"state":"closed","locked":false,"title":"Read was never working","user":{"login":"sorich87","id":230367,"avatar_url":"https://avatars.githubusercontent.com/u/230367?v=3","gravatar_id":"","url":"https://api.github.com/users/sorich87","html_url":"https://github.com/sorich87","followers_url":"https://api.github.com/users/sorich87/followers","following_url":"https://api.github.com/users/sorich87/following{/other_user}","gists_url":"https://api.github.com/users/sorich87/gists{/gist_id}","starred_url":"https://api.github.com/users/sorich87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorich87/subscriptions","organizations_url":"https://api.github.com/users/sorich87/orgs","repos_url":"https://api.github.com/users/sorich87/repos","events_url":"https://api.github.com/users/sorich87/events{/privacy}","received_events_url":"https://api.github.com/users/sorich87/received_events","type":"User","site_admin":false},"body":"The changes in #41 were supposed to add support to read payloads. But it actually never worked because read wasn't added to the list of events which can be passed to `Bot.on`. Doing `Bot.on :read` was generating the error `/gems/facebook-messenger-0.8.0/lib/facebook/messenger/bot.rb:34:in `on': read is not a valid event; available events are message,delivery,postback,optin (ArgumentError)`.\r\n\r\nThis pull request fixes it. It also adds more unit tests.","created_at":"2016-07-21T16:50:01Z","updated_at":"2016-07-27T08:54:34Z","closed_at":"2016-07-27T08:54:34Z","merged_at":"2016-07-27T08:54:34Z","merge_commit_sha":"a72a09c86e92acc58752028d523a84f65a24a33b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/pulls/52/commits","review_comments_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/pulls/52/comments","review_comment_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/issues/52/comments","statuses_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/statuses/2b84549e01c38e1042a6681fc90969a4d04d06ec","head":{"label":"sorich87:hotfix/read-was-never-working","ref":"hotfix/read-was-never-working","sha":"2b84549e01c38e1042a6681fc90969a4d04d06ec","user":{"login":"sorich87","id":230367,"avatar_url":"https://avatars.githubusercontent.com/u/230367?v=3","gravatar_id":"","url":"https://api.github.com/users/sorich87","html_url":"https://github.com/sorich87","followers_url":"https://api.github.com/users/sorich87/followers","following_url":"https://api.github.com/users/sorich87/following{/other_user}","gists_url":"https://api.github.com/users/sorich87/gists{/gist_id}","starred_url":"https://api.github.com/users/sorich87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorich87/subscriptions","organizations_url":"https://api.github.com/users/sorich87/orgs","repos_url":"https://api.github.com/users/sorich87/repos","events_url":"https://api.github.com/users/sorich87/events{/privacy}","received_events_url":"https://api.github.com/users/sorich87/received_events","type":"User","site_admin":false},"repo":{"id":62033252,"name":"facebook-messenger","full_name":"sorich87/facebook-messenger","owner":{"login":"sorich87","id":230367,"avatar_url":"https://avatars.githubusercontent.com/u/230367?v=3","gravatar_id":"","url":"https://api.github.com/users/sorich87","html_url":"https://github.com/sorich87","followers_url":"https://api.github.com/users/sorich87/followers","following_url":"https://api.github.com/users/sorich87/following{/other_user}","gists_url":"https://api.github.com/users/sorich87/gists{/gist_id}","starred_url":"https://api.github.com/users/sorich87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorich87/subscriptions","organizations_url":"https://api.github.com/users/sorich87/orgs","repos_url":"https://api.github.com/users/sorich87/repos","events_url":"https://api.github.com/users/sorich87/events{/privacy}","received_events_url":"https://api.github.com/users/sorich87/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sorich87/facebook-messenger","description":"Definitely the best Ruby client for Bots on Messenger","fork":true,"url":"https://api.github.com/repos/sorich87/facebook-messenger","forks_url":"https://api.github.com/repos/sorich87/facebook-messenger/forks","keys_url":"https://api.github.com/repos/sorich87/facebook-messenger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sorich87/facebook-messenger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sorich87/facebook-messenger/teams","hooks_url":"https://api.github.com/repos/sorich87/facebook-messenger/hooks","issue_events_url":"https://api.github.com/repos/sorich87/facebook-messenger/issues/events{/number}","events_url":"https://api.github.com/repos/sorich87/facebook-messenger/events","assignees_url":"https://api.github.com/repos/sorich87/facebook-messenger/assignees{/user}","branches_url":"https://api.github.com/repos/sorich87/facebook-messenger/branches{/branch}","tags_url":"https://api.github.com/repos/sorich87/facebook-messenger/tags","blobs_url":"https://api.github.com/repos/sorich87/facebook-messenger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sorich87/facebook-messenger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sorich87/facebook-messenger/git/refs{/sha}","trees_url":"https://api.github.com/repos/sorich87/facebook-messenger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sorich87/facebook-messenger/statuses/{sha}","languages_url":"https://api.github.com/repos/sorich87/facebook-messenger/languages","stargazers_url":"https://api.github.com/repos/sorich87/facebook-messenger/stargazers","contributors_url":"https://api.github.com/repos/sorich87/facebook-messenger/contributors","subscribers_url":"https://api.github.com/repos/sorich87/facebook-messenger/subscribers","subscription_url":"https://api.github.com/repos/sorich87/facebook-messenger/subscription","commits_url":"https://api.github.com/repos/sorich87/facebook-messenger/commits{/sha}","git_commits_url":"https://api.github.com/repos/sorich87/facebook-messenger/git/commits{/sha}","comments_url":"https://api.github.com/repos/sorich87/facebook-messenger/comments{/number}","issue_comment_url":"https://api.github.com/repos/sorich87/facebook-messenger/issues/comments{/number}","contents_url":"https://api.github.com/repos/sorich87/facebook-messenger/contents/{+path}","compare_url":"https://api.github.com/repos/sorich87/facebook-messenger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sorich87/facebook-messenger/merges","archive_url":"https://api.github.com/repos/sorich87/facebook-messenger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sorich87/facebook-messenger/downloads","issues_url":"https://api.github.com/repos/sorich87/facebook-messenger/issues{/number}","pulls_url":"https://api.github.com/repos/sorich87/facebook-messenger/pulls{/number}","milestones_url":"https://api.github.com/repos/sorich87/facebook-messenger/milestones{/number}","notifications_url":"https://api.github.com/repos/sorich87/facebook-messenger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sorich87/facebook-messenger/labels{/name}","releases_url":"https://api.github.com/repos/sorich87/facebook-messenger/releases{/id}","deployments_url":"https://api.github.com/repos/sorich87/facebook-messenger/deployments","created_at":"2016-06-27T07:10:16Z","updated_at":"2016-06-27T07:10:17Z","pushed_at":"2016-07-21T16:44:33Z","git_url":"git://github.com/sorich87/facebook-messenger.git","ssh_url":"git@github.com:sorich87/facebook-messenger.git","clone_url":"https://github.com/sorich87/facebook-messenger.git","svn_url":"https://github.com/sorich87/facebook-messenger","homepage":"","size":1370,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"hyperoslo:master","ref":"master","sha":"461400dbf43f0f1a35f1df3fb30a60f0ab41b7d3","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":56318788,"name":"facebook-messenger","full_name":"hyperoslo/facebook-messenger","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/facebook-messenger","description":"Definitely the best Ruby client for Bots on Messenger","fork":false,"url":"https://api.github.com/repos/hyperoslo/facebook-messenger","forks_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/forks","keys_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/teams","hooks_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/events","assignees_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/tags","blobs_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/subscription","commits_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/merges","archive_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/downloads","issues_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/releases{/id}","deployments_url":"https://api.github.com/repos/hyperoslo/facebook-messenger/deployments","created_at":"2016-04-15T12:34:06Z","updated_at":"2016-07-27T08:53:24Z","pushed_at":"2016-07-27T08:54:34Z","git_url":"git://github.com/hyperoslo/facebook-messenger.git","ssh_url":"git@github.com:hyperoslo/facebook-messenger.git","clone_url":"https://github.com/hyperoslo/facebook-messenger.git","svn_url":"https://github.com/hyperoslo/facebook-messenger","homepage":"","size":1369,"stargazers_count":291,"watchers_count":291,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":1,"forks":26,"open_issues":1,"watchers":291,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/facebook-messenger/pulls/52"},"html":{"href":"https://github.com/hyperoslo/facebook-messenger/pull/52"},"issue":{"href":"https://api.github.com/repos/hyperoslo/facebook-messenger/issues/52"},"comments":{"href":"https://api.github.com/repos/hyperoslo/facebook-messenger/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperoslo/facebook-messenger/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperoslo/facebook-messenger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperoslo/facebook-messenger/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/hyperoslo/facebook-messenger/statuses/2b84549e01c38e1042a6681fc90969a4d04d06ec"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nashby","id":200500,"avatar_url":"https://avatars.githubusercontent.com/u/200500?v=3","gravatar_id":"","url":"https://api.github.com/users/nashby","html_url":"https://github.com/nashby","followers_url":"https://api.github.com/users/nashby/followers","following_url":"https://api.github.com/users/nashby/following{/other_user}","gists_url":"https://api.github.com/users/nashby/gists{/gist_id}","starred_url":"https://api.github.com/users/nashby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nashby/subscriptions","organizations_url":"https://api.github.com/users/nashby/orgs","repos_url":"https://api.github.com/users/nashby/repos","events_url":"https://api.github.com/users/nashby/events{/privacy}","received_events_url":"https://api.github.com/users/nashby/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":76,"deletions":1,"changed_files":3}}
{"actor":{"display_login":"nashby"}}