{"action":"created","comment":{"url":"https://api.github.com/repos/kosmodrey/telebot/pulls/comments/63935897","id":63935897,"diff_hunk":"@@ -21,9 +21,7 @@ module.exports = (bot, opt) => {\n \n   // Check port\n   if (!PORTS.includes(port)) {\n-    let error = `[bot.error.webhook] allowed ports: ${ PORTS.join(', ') }`;\n-    this.event('error', { error });\n-    console.error(error);\n+    console.error(`[bot.warning.webhook] allowed ports: ${ PORTS.join(', ') }`);\n     return;","path":"lib/webhook.js","position":8,"original_position":8,"commit_id":"be721a30fda29295e2b41a4efd2538d809539597","original_commit_id":"be721a30fda29295e2b41a4efd2538d809539597","user":{"login":"kosmodrey","id":10274725,"avatar_url":"https://avatars.githubusercontent.com/u/10274725?v=3","gravatar_id":"","url":"https://api.github.com/users/kosmodrey","html_url":"https://github.com/kosmodrey","followers_url":"https://api.github.com/users/kosmodrey/followers","following_url":"https://api.github.com/users/kosmodrey/following{/other_user}","gists_url":"https://api.github.com/users/kosmodrey/gists{/gist_id}","starred_url":"https://api.github.com/users/kosmodrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosmodrey/subscriptions","organizations_url":"https://api.github.com/users/kosmodrey/orgs","repos_url":"https://api.github.com/users/kosmodrey/repos","events_url":"https://api.github.com/users/kosmodrey/events{/privacy}","received_events_url":"https://api.github.com/users/kosmodrey/received_events","type":"User","site_admin":false},"body":"If we remove error event from this block, then we will not be able to do any actions (this will not trigger main *telebot.js* error handler).","created_at":"2016-05-19T19:01:27Z","updated_at":"2016-05-19T19:01:27Z","html_url":"https://github.com/kosmodrey/telebot/pull/11#discussion_r63935897","pull_request_url":"https://api.github.com/repos/kosmodrey/telebot/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/kosmodrey/telebot/pulls/comments/63935897"},"html":{"href":"https://github.com/kosmodrey/telebot/pull/11#discussion_r63935897"},"pull_request":{"href":"https://api.github.com/repos/kosmodrey/telebot/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/kosmodrey/telebot/pulls/11","id":70739558,"html_url":"https://github.com/kosmodrey/telebot/pull/11","diff_url":"https://github.com/kosmodrey/telebot/pull/11.diff","patch_url":"https://github.com/kosmodrey/telebot/pull/11.patch","issue_url":"https://api.github.com/repos/kosmodrey/telebot/issues/11","number":11,"state":"open","locked":false,"title":"Remove `event` usage in webhook","user":{"login":"G07cha","id":6943514,"avatar_url":"https://avatars.githubusercontent.com/u/6943514?v=3","gravatar_id":"","url":"https://api.github.com/users/G07cha","html_url":"https://github.com/G07cha","followers_url":"https://api.github.com/users/G07cha/followers","following_url":"https://api.github.com/users/G07cha/following{/other_user}","gists_url":"https://api.github.com/users/G07cha/gists{/gist_id}","starred_url":"https://api.github.com/users/G07cha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G07cha/subscriptions","organizations_url":"https://api.github.com/users/G07cha/orgs","repos_url":"https://api.github.com/users/G07cha/repos","events_url":"https://api.github.com/users/G07cha/events{/privacy}","received_events_url":"https://api.github.com/users/G07cha/received_events","type":"User","site_admin":false},"body":"`event` is not defined in current context, and I thought that telegram bot could be hidden behind proxy with non-default port(like in \"Heroku\") so there is no reason to throw an error in this case.","created_at":"2016-05-19T18:10:02Z","updated_at":"2016-05-19T19:01:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5050d83241894e6e026f812d00a9f1e8fa8bcde9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kosmodrey/telebot/pulls/11/commits","review_comments_url":"https://api.github.com/repos/kosmodrey/telebot/pulls/11/comments","review_comment_url":"https://api.github.com/repos/kosmodrey/telebot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kosmodrey/telebot/issues/11/comments","statuses_url":"https://api.github.com/repos/kosmodrey/telebot/statuses/be721a30fda29295e2b41a4efd2538d809539597","head":{"label":"G07cha:patch-2","ref":"patch-2","sha":"be721a30fda29295e2b41a4efd2538d809539597","user":{"login":"G07cha","id":6943514,"avatar_url":"https://avatars.githubusercontent.com/u/6943514?v=3","gravatar_id":"","url":"https://api.github.com/users/G07cha","html_url":"https://github.com/G07cha","followers_url":"https://api.github.com/users/G07cha/followers","following_url":"https://api.github.com/users/G07cha/following{/other_user}","gists_url":"https://api.github.com/users/G07cha/gists{/gist_id}","starred_url":"https://api.github.com/users/G07cha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G07cha/subscriptions","organizations_url":"https://api.github.com/users/G07cha/orgs","repos_url":"https://api.github.com/users/G07cha/repos","events_url":"https://api.github.com/users/G07cha/events{/privacy}","received_events_url":"https://api.github.com/users/G07cha/received_events","type":"User","site_admin":false},"repo":{"id":59178111,"name":"telebot","full_name":"G07cha/telebot","owner":{"login":"G07cha","id":6943514,"avatar_url":"https://avatars.githubusercontent.com/u/6943514?v=3","gravatar_id":"","url":"https://api.github.com/users/G07cha","html_url":"https://github.com/G07cha","followers_url":"https://api.github.com/users/G07cha/followers","following_url":"https://api.github.com/users/G07cha/following{/other_user}","gists_url":"https://api.github.com/users/G07cha/gists{/gist_id}","starred_url":"https://api.github.com/users/G07cha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G07cha/subscriptions","organizations_url":"https://api.github.com/users/G07cha/orgs","repos_url":"https://api.github.com/users/G07cha/repos","events_url":"https://api.github.com/users/G07cha/events{/privacy}","received_events_url":"https://api.github.com/users/G07cha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/G07cha/telebot","description":"The easy way to write Telegram bots in Node.js","fork":true,"url":"https://api.github.com/repos/G07cha/telebot","forks_url":"https://api.github.com/repos/G07cha/telebot/forks","keys_url":"https://api.github.com/repos/G07cha/telebot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/G07cha/telebot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/G07cha/telebot/teams","hooks_url":"https://api.github.com/repos/G07cha/telebot/hooks","issue_events_url":"https://api.github.com/repos/G07cha/telebot/issues/events{/number}","events_url":"https://api.github.com/repos/G07cha/telebot/events","assignees_url":"https://api.github.com/repos/G07cha/telebot/assignees{/user}","branches_url":"https://api.github.com/repos/G07cha/telebot/branches{/branch}","tags_url":"https://api.github.com/repos/G07cha/telebot/tags","blobs_url":"https://api.github.com/repos/G07cha/telebot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/G07cha/telebot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/G07cha/telebot/git/refs{/sha}","trees_url":"https://api.github.com/repos/G07cha/telebot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/G07cha/telebot/statuses/{sha}","languages_url":"https://api.github.com/repos/G07cha/telebot/languages","stargazers_url":"https://api.github.com/repos/G07cha/telebot/stargazers","contributors_url":"https://api.github.com/repos/G07cha/telebot/contributors","subscribers_url":"https://api.github.com/repos/G07cha/telebot/subscribers","subscription_url":"https://api.github.com/repos/G07cha/telebot/subscription","commits_url":"https://api.github.com/repos/G07cha/telebot/commits{/sha}","git_commits_url":"https://api.github.com/repos/G07cha/telebot/git/commits{/sha}","comments_url":"https://api.github.com/repos/G07cha/telebot/comments{/number}","issue_comment_url":"https://api.github.com/repos/G07cha/telebot/issues/comments{/number}","contents_url":"https://api.github.com/repos/G07cha/telebot/contents/{+path}","compare_url":"https://api.github.com/repos/G07cha/telebot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/G07cha/telebot/merges","archive_url":"https://api.github.com/repos/G07cha/telebot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/G07cha/telebot/downloads","issues_url":"https://api.github.com/repos/G07cha/telebot/issues{/number}","pulls_url":"https://api.github.com/repos/G07cha/telebot/pulls{/number}","milestones_url":"https://api.github.com/repos/G07cha/telebot/milestones{/number}","notifications_url":"https://api.github.com/repos/G07cha/telebot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/G07cha/telebot/labels{/name}","releases_url":"https://api.github.com/repos/G07cha/telebot/releases{/id}","deployments_url":"https://api.github.com/repos/G07cha/telebot/deployments","created_at":"2016-05-19T06:00:59Z","updated_at":"2016-05-19T06:01:00Z","pushed_at":"2016-05-19T18:09:57Z","git_url":"git://github.com/G07cha/telebot.git","ssh_url":"git@github.com:G07cha/telebot.git","clone_url":"https://github.com/G07cha/telebot.git","svn_url":"https://github.com/G07cha/telebot","homepage":"","size":1556,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"kosmodrey:master","ref":"master","sha":"c2bc952dc766800c6a647cf4529602fb8961f630","user":{"login":"kosmodrey","id":10274725,"avatar_url":"https://avatars.githubusercontent.com/u/10274725?v=3","gravatar_id":"","url":"https://api.github.com/users/kosmodrey","html_url":"https://github.com/kosmodrey","followers_url":"https://api.github.com/users/kosmodrey/followers","following_url":"https://api.github.com/users/kosmodrey/following{/other_user}","gists_url":"https://api.github.com/users/kosmodrey/gists{/gist_id}","starred_url":"https://api.github.com/users/kosmodrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosmodrey/subscriptions","organizations_url":"https://api.github.com/users/kosmodrey/orgs","repos_url":"https://api.github.com/users/kosmodrey/repos","events_url":"https://api.github.com/users/kosmodrey/events{/privacy}","received_events_url":"https://api.github.com/users/kosmodrey/received_events","type":"User","site_admin":false},"repo":{"id":39589043,"name":"telebot","full_name":"kosmodrey/telebot","owner":{"login":"kosmodrey","id":10274725,"avatar_url":"https://avatars.githubusercontent.com/u/10274725?v=3","gravatar_id":"","url":"https://api.github.com/users/kosmodrey","html_url":"https://github.com/kosmodrey","followers_url":"https://api.github.com/users/kosmodrey/followers","following_url":"https://api.github.com/users/kosmodrey/following{/other_user}","gists_url":"https://api.github.com/users/kosmodrey/gists{/gist_id}","starred_url":"https://api.github.com/users/kosmodrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosmodrey/subscriptions","organizations_url":"https://api.github.com/users/kosmodrey/orgs","repos_url":"https://api.github.com/users/kosmodrey/repos","events_url":"https://api.github.com/users/kosmodrey/events{/privacy}","received_events_url":"https://api.github.com/users/kosmodrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kosmodrey/telebot","description":"The easy way to write Telegram bots in Node.js","fork":false,"url":"https://api.github.com/repos/kosmodrey/telebot","forks_url":"https://api.github.com/repos/kosmodrey/telebot/forks","keys_url":"https://api.github.com/repos/kosmodrey/telebot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kosmodrey/telebot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kosmodrey/telebot/teams","hooks_url":"https://api.github.com/repos/kosmodrey/telebot/hooks","issue_events_url":"https://api.github.com/repos/kosmodrey/telebot/issues/events{/number}","events_url":"https://api.github.com/repos/kosmodrey/telebot/events","assignees_url":"https://api.github.com/repos/kosmodrey/telebot/assignees{/user}","branches_url":"https://api.github.com/repos/kosmodrey/telebot/branches{/branch}","tags_url":"https://api.github.com/repos/kosmodrey/telebot/tags","blobs_url":"https://api.github.com/repos/kosmodrey/telebot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kosmodrey/telebot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kosmodrey/telebot/git/refs{/sha}","trees_url":"https://api.github.com/repos/kosmodrey/telebot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kosmodrey/telebot/statuses/{sha}","languages_url":"https://api.github.com/repos/kosmodrey/telebot/languages","stargazers_url":"https://api.github.com/repos/kosmodrey/telebot/stargazers","contributors_url":"https://api.github.com/repos/kosmodrey/telebot/contributors","subscribers_url":"https://api.github.com/repos/kosmodrey/telebot/subscribers","subscription_url":"https://api.github.com/repos/kosmodrey/telebot/subscription","commits_url":"https://api.github.com/repos/kosmodrey/telebot/commits{/sha}","git_commits_url":"https://api.github.com/repos/kosmodrey/telebot/git/commits{/sha}","comments_url":"https://api.github.com/repos/kosmodrey/telebot/comments{/number}","issue_comment_url":"https://api.github.com/repos/kosmodrey/telebot/issues/comments{/number}","contents_url":"https://api.github.com/repos/kosmodrey/telebot/contents/{+path}","compare_url":"https://api.github.com/repos/kosmodrey/telebot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kosmodrey/telebot/merges","archive_url":"https://api.github.com/repos/kosmodrey/telebot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kosmodrey/telebot/downloads","issues_url":"https://api.github.com/repos/kosmodrey/telebot/issues{/number}","pulls_url":"https://api.github.com/repos/kosmodrey/telebot/pulls{/number}","milestones_url":"https://api.github.com/repos/kosmodrey/telebot/milestones{/number}","notifications_url":"https://api.github.com/repos/kosmodrey/telebot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kosmodrey/telebot/labels{/name}","releases_url":"https://api.github.com/repos/kosmodrey/telebot/releases{/id}","deployments_url":"https://api.github.com/repos/kosmodrey/telebot/deployments","created_at":"2015-07-23T19:53:20Z","updated_at":"2016-05-19T18:10:20Z","pushed_at":"2016-05-19T18:10:02Z","git_url":"git://github.com/kosmodrey/telebot.git","ssh_url":"git@github.com:kosmodrey/telebot.git","clone_url":"https://github.com/kosmodrey/telebot.git","svn_url":"https://github.com/kosmodrey/telebot","homepage":"","size":1558,"stargazers_count":94,"watchers_count":94,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":94,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kosmodrey/telebot/pulls/11"},"html":{"href":"https://github.com/kosmodrey/telebot/pull/11"},"issue":{"href":"https://api.github.com/repos/kosmodrey/telebot/issues/11"},"comments":{"href":"https://api.github.com/repos/kosmodrey/telebot/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/kosmodrey/telebot/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/kosmodrey/telebot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kosmodrey/telebot/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/kosmodrey/telebot/statuses/be721a30fda29295e2b41a4efd2538d809539597"}}}}