{"action":"created","comment":{"url":"https://api.github.com/repos/alexbft/imouto-ts/pulls/comments/173624357","pull_request_review_id":102852847,"id":173624357,"diff_hunk":"@@ -0,0 +1,171 @@\n+import { Input } from 'core/bot_api/input';\n+import { Plugin } from 'core/bot_api/plugin';\n+import { GoogleCX, GoogleKey } from 'core/config/keys';\n+import { Inject, InjectValue } from 'core/di/injector';\n+import { TgApi } from 'core/tg/tg_api';\n+import { Web } from 'core/util/web';\n+import { Message } from 'node-telegram-bot-api';\n+\n+const firstKeyboard = [\n+  [\n+      {text: 'Следующая', callback_data: 'next'},\n+  ],\n+];\n+\n+const lastKeyboard = [\n+  [\n+      {text: 'Предыдущая', callback_data: 'prev'},\n+  ],\n+];\n+\n+const pageKeyboard = [\n+  [\n+      {text: 'Предыдущая', callback_data: 'prev'},\n+      {text: 'Следующая', callback_data: 'next'},\n+  ],\n+];\n+\n+interface GooglePic {\n+  link: string;\n+}\n+\n+interface Context {\n+  txt: string;\n+  pic: GooglePic;\n+  picSet: GooglePic[];\n+  index: number;\n+  keyboard: typeof firstKeyboard | typeof lastKeyboard | typeof pageKeyboard;\n+  msg: Message;\n+}\n+\n+@Inject\n+export class ImagesPlugin implements Plugin {\n+  readonly name = 'Images';\n+\n+  constructor(\n+    private web: Web,\n+    private api: TgApi,\n+    @InjectValue(GoogleKey) private googlekey: string,\n+    @InjectValue(GoogleCX) private googlecx: string,\n+  ) {}\n+\n+  init(input: Input) {","path":"src/plugins/src/images.ts","position":52,"original_position":52,"commit_id":"8f46a61abb4eb4543a5d74ae05ff28c6c63401f1","original_commit_id":"8f46a61abb4eb4543a5d74ae05ff28c6c63401f1","user":{"login":"alexbft","id":537984,"avatar_url":"https://avatars1.githubusercontent.com/u/537984?v=4","gravatar_id":"","url":"https://api.github.com/users/alexbft","html_url":"https://github.com/alexbft","followers_url":"https://api.github.com/users/alexbft/followers","following_url":"https://api.github.com/users/alexbft/following{/other_user}","gists_url":"https://api.github.com/users/alexbft/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbft/subscriptions","organizations_url":"https://api.github.com/users/alexbft/orgs","repos_url":"https://api.github.com/users/alexbft/repos","events_url":"https://api.github.com/users/alexbft/events{/privacy}","received_events_url":"https://api.github.com/users/alexbft/received_events","type":"User","site_admin":false},"body":"return type","created_at":"2018-03-10T14:50:08Z","updated_at":"2018-03-10T14:54:02Z","html_url":"https://github.com/alexbft/imouto-ts/pull/3#discussion_r173624357","pull_request_url":"https://api.github.com/repos/alexbft/imouto-ts/pulls/3","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/alexbft/imouto-ts/pulls/comments/173624357"},"html":{"href":"https://github.com/alexbft/imouto-ts/pull/3#discussion_r173624357"},"pull_request":{"href":"https://api.github.com/repos/alexbft/imouto-ts/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/alexbft/imouto-ts/pulls/3","id":165563501,"html_url":"https://github.com/alexbft/imouto-ts/pull/3","diff_url":"https://github.com/alexbft/imouto-ts/pull/3.diff","patch_url":"https://github.com/alexbft/imouto-ts/pull/3.patch","issue_url":"https://api.github.com/repos/alexbft/imouto-ts/issues/3","number":3,"state":"open","locked":false,"title":"Memes","user":{"login":"goodmind","id":3275424,"avatar_url":"https://avatars2.githubusercontent.com/u/3275424?v=4","gravatar_id":"","url":"https://api.github.com/users/goodmind","html_url":"https://github.com/goodmind","followers_url":"https://api.github.com/users/goodmind/followers","following_url":"https://api.github.com/users/goodmind/following{/other_user}","gists_url":"https://api.github.com/users/goodmind/gists{/gist_id}","starred_url":"https://api.github.com/users/goodmind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodmind/subscriptions","organizations_url":"https://api.github.com/users/goodmind/orgs","repos_url":"https://api.github.com/users/goodmind/repos","events_url":"https://api.github.com/users/goodmind/events{/privacy}","received_events_url":"https://api.github.com/users/goodmind/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-01-28T11:57:06Z","updated_at":"2018-03-10T14:54:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec6853f9e68ff49718aba34ee96e47dc34d84268","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alexbft/imouto-ts/pulls/3/commits","review_comments_url":"https://api.github.com/repos/alexbft/imouto-ts/pulls/3/comments","review_comment_url":"https://api.github.com/repos/alexbft/imouto-ts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alexbft/imouto-ts/issues/3/comments","statuses_url":"https://api.github.com/repos/alexbft/imouto-ts/statuses/8f46a61abb4eb4543a5d74ae05ff28c6c63401f1","head":{"label":"goodmind:master","ref":"master","sha":"8f46a61abb4eb4543a5d74ae05ff28c6c63401f1","user":{"login":"goodmind","id":3275424,"avatar_url":"https://avatars2.githubusercontent.com/u/3275424?v=4","gravatar_id":"","url":"https://api.github.com/users/goodmind","html_url":"https://github.com/goodmind","followers_url":"https://api.github.com/users/goodmind/followers","following_url":"https://api.github.com/users/goodmind/following{/other_user}","gists_url":"https://api.github.com/users/goodmind/gists{/gist_id}","starred_url":"https://api.github.com/users/goodmind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodmind/subscriptions","organizations_url":"https://api.github.com/users/goodmind/orgs","repos_url":"https://api.github.com/users/goodmind/repos","events_url":"https://api.github.com/users/goodmind/events{/privacy}","received_events_url":"https://api.github.com/users/goodmind/received_events","type":"User","site_admin":false},"repo":{"id":111285783,"name":"imouto-ts","full_name":"goodmind/imouto-ts","owner":{"login":"goodmind","id":3275424,"avatar_url":"https://avatars2.githubusercontent.com/u/3275424?v=4","gravatar_id":"","url":"https://api.github.com/users/goodmind","html_url":"https://github.com/goodmind","followers_url":"https://api.github.com/users/goodmind/followers","following_url":"https://api.github.com/users/goodmind/following{/other_user}","gists_url":"https://api.github.com/users/goodmind/gists{/gist_id}","starred_url":"https://api.github.com/users/goodmind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodmind/subscriptions","organizations_url":"https://api.github.com/users/goodmind/orgs","repos_url":"https://api.github.com/users/goodmind/repos","events_url":"https://api.github.com/users/goodmind/events{/privacy}","received_events_url":"https://api.github.com/users/goodmind/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/goodmind/imouto-ts","description":"Imouto bot for Telegram, now in Typescript","fork":true,"url":"https://api.github.com/repos/goodmind/imouto-ts","forks_url":"https://api.github.com/repos/goodmind/imouto-ts/forks","keys_url":"https://api.github.com/repos/goodmind/imouto-ts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goodmind/imouto-ts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goodmind/imouto-ts/teams","hooks_url":"https://api.github.com/repos/goodmind/imouto-ts/hooks","issue_events_url":"https://api.github.com/repos/goodmind/imouto-ts/issues/events{/number}","events_url":"https://api.github.com/repos/goodmind/imouto-ts/events","assignees_url":"https://api.github.com/repos/goodmind/imouto-ts/assignees{/user}","branches_url":"https://api.github.com/repos/goodmind/imouto-ts/branches{/branch}","tags_url":"https://api.github.com/repos/goodmind/imouto-ts/tags","blobs_url":"https://api.github.com/repos/goodmind/imouto-ts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goodmind/imouto-ts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goodmind/imouto-ts/git/refs{/sha}","trees_url":"https://api.github.com/repos/goodmind/imouto-ts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goodmind/imouto-ts/statuses/{sha}","languages_url":"https://api.github.com/repos/goodmind/imouto-ts/languages","stargazers_url":"https://api.github.com/repos/goodmind/imouto-ts/stargazers","contributors_url":"https://api.github.com/repos/goodmind/imouto-ts/contributors","subscribers_url":"https://api.github.com/repos/goodmind/imouto-ts/subscribers","subscription_url":"https://api.github.com/repos/goodmind/imouto-ts/subscription","commits_url":"https://api.github.com/repos/goodmind/imouto-ts/commits{/sha}","git_commits_url":"https://api.github.com/repos/goodmind/imouto-ts/git/commits{/sha}","comments_url":"https://api.github.com/repos/goodmind/imouto-ts/comments{/number}","issue_comment_url":"https://api.github.com/repos/goodmind/imouto-ts/issues/comments{/number}","contents_url":"https://api.github.com/repos/goodmind/imouto-ts/contents/{+path}","compare_url":"https://api.github.com/repos/goodmind/imouto-ts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goodmind/imouto-ts/merges","archive_url":"https://api.github.com/repos/goodmind/imouto-ts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goodmind/imouto-ts/downloads","issues_url":"https://api.github.com/repos/goodmind/imouto-ts/issues{/number}","pulls_url":"https://api.github.com/repos/goodmind/imouto-ts/pulls{/number}","milestones_url":"https://api.github.com/repos/goodmind/imouto-ts/milestones{/number}","notifications_url":"https://api.github.com/repos/goodmind/imouto-ts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goodmind/imouto-ts/labels{/name}","releases_url":"https://api.github.com/repos/goodmind/imouto-ts/releases{/id}","deployments_url":"https://api.github.com/repos/goodmind/imouto-ts/deployments","created_at":"2017-11-19T10:38:37Z","updated_at":"2017-11-19T10:38:39Z","pushed_at":"2018-02-16T20:43:45Z","git_url":"git://github.com/goodmind/imouto-ts.git","ssh_url":"git@github.com:goodmind/imouto-ts.git","clone_url":"https://github.com/goodmind/imouto-ts.git","svn_url":"https://github.com/goodmind/imouto-ts","homepage":null,"size":64,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alexbft:master","ref":"master","sha":"fae53d7aa5609dec99383c0283d2d931f2959d6a","user":{"login":"alexbft","id":537984,"avatar_url":"https://avatars1.githubusercontent.com/u/537984?v=4","gravatar_id":"","url":"https://api.github.com/users/alexbft","html_url":"https://github.com/alexbft","followers_url":"https://api.github.com/users/alexbft/followers","following_url":"https://api.github.com/users/alexbft/following{/other_user}","gists_url":"https://api.github.com/users/alexbft/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbft/subscriptions","organizations_url":"https://api.github.com/users/alexbft/orgs","repos_url":"https://api.github.com/users/alexbft/repos","events_url":"https://api.github.com/users/alexbft/events{/privacy}","received_events_url":"https://api.github.com/users/alexbft/received_events","type":"User","site_admin":false},"repo":{"id":111284018,"name":"imouto-ts","full_name":"alexbft/imouto-ts","owner":{"login":"alexbft","id":537984,"avatar_url":"https://avatars1.githubusercontent.com/u/537984?v=4","gravatar_id":"","url":"https://api.github.com/users/alexbft","html_url":"https://github.com/alexbft","followers_url":"https://api.github.com/users/alexbft/followers","following_url":"https://api.github.com/users/alexbft/following{/other_user}","gists_url":"https://api.github.com/users/alexbft/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbft/subscriptions","organizations_url":"https://api.github.com/users/alexbft/orgs","repos_url":"https://api.github.com/users/alexbft/repos","events_url":"https://api.github.com/users/alexbft/events{/privacy}","received_events_url":"https://api.github.com/users/alexbft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexbft/imouto-ts","description":"Imouto bot for Telegram, now in Typescript","fork":false,"url":"https://api.github.com/repos/alexbft/imouto-ts","forks_url":"https://api.github.com/repos/alexbft/imouto-ts/forks","keys_url":"https://api.github.com/repos/alexbft/imouto-ts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexbft/imouto-ts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexbft/imouto-ts/teams","hooks_url":"https://api.github.com/repos/alexbft/imouto-ts/hooks","issue_events_url":"https://api.github.com/repos/alexbft/imouto-ts/issues/events{/number}","events_url":"https://api.github.com/repos/alexbft/imouto-ts/events","assignees_url":"https://api.github.com/repos/alexbft/imouto-ts/assignees{/user}","branches_url":"https://api.github.com/repos/alexbft/imouto-ts/branches{/branch}","tags_url":"https://api.github.com/repos/alexbft/imouto-ts/tags","blobs_url":"https://api.github.com/repos/alexbft/imouto-ts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexbft/imouto-ts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexbft/imouto-ts/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexbft/imouto-ts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexbft/imouto-ts/statuses/{sha}","languages_url":"https://api.github.com/repos/alexbft/imouto-ts/languages","stargazers_url":"https://api.github.com/repos/alexbft/imouto-ts/stargazers","contributors_url":"https://api.github.com/repos/alexbft/imouto-ts/contributors","subscribers_url":"https://api.github.com/repos/alexbft/imouto-ts/subscribers","subscription_url":"https://api.github.com/repos/alexbft/imouto-ts/subscription","commits_url":"https://api.github.com/repos/alexbft/imouto-ts/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexbft/imouto-ts/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexbft/imouto-ts/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexbft/imouto-ts/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexbft/imouto-ts/contents/{+path}","compare_url":"https://api.github.com/repos/alexbft/imouto-ts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexbft/imouto-ts/merges","archive_url":"https://api.github.com/repos/alexbft/imouto-ts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexbft/imouto-ts/downloads","issues_url":"https://api.github.com/repos/alexbft/imouto-ts/issues{/number}","pulls_url":"https://api.github.com/repos/alexbft/imouto-ts/pulls{/number}","milestones_url":"https://api.github.com/repos/alexbft/imouto-ts/milestones{/number}","notifications_url":"https://api.github.com/repos/alexbft/imouto-ts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexbft/imouto-ts/labels{/name}","releases_url":"https://api.github.com/repos/alexbft/imouto-ts/releases{/id}","deployments_url":"https://api.github.com/repos/alexbft/imouto-ts/deployments","created_at":"2017-11-19T10:08:03Z","updated_at":"2017-11-19T11:16:17Z","pushed_at":"2018-02-16T20:43:46Z","git_url":"git://github.com/alexbft/imouto-ts.git","ssh_url":"git@github.com:alexbft/imouto-ts.git","clone_url":"https://github.com/alexbft/imouto-ts.git","svn_url":"https://github.com/alexbft/imouto-ts","homepage":null,"size":30,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alexbft/imouto-ts/pulls/3"},"html":{"href":"https://github.com/alexbft/imouto-ts/pull/3"},"issue":{"href":"https://api.github.com/repos/alexbft/imouto-ts/issues/3"},"comments":{"href":"https://api.github.com/repos/alexbft/imouto-ts/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/alexbft/imouto-ts/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/alexbft/imouto-ts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alexbft/imouto-ts/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/alexbft/imouto-ts/statuses/8f46a61abb4eb4543a5d74ae05ff28c6c63401f1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"alexbft"}}