{"action":"created","comment":{"url":"https://api.github.com/repos/zhyu/nadia/pulls/comments/53907180","id":53907180,"diff_hunk":"@@ -330,6 +330,23 @@ defmodule Nadia do\n   def get_file(file_id), do: request(\"getFile\", file_id: file_id)\n \n   @doc \"\"\"\n+  Use this method to get link for file for subsequent use.\n+  This method is an extension of the `get_file` method.\n+\n+  *Attention: link will be valid for 1 hour.*\n+\n+  Args:\n+  * `file_id` - File identifier to get link\n+  \"\"\"\n+  @spec get_file_link(binary) :: binary | {:error, Error.t}\n+  def get_file_link(file_id) do\n+    with {:ok, f} <- request(\"getFile\", file_id: file_id),","path":"lib/nadia.ex","position":14,"original_position":14,"commit_id":"830358fd87583b61398a2cfc416deda210e713d6","original_commit_id":"830358fd87583b61398a2cfc416deda210e713d6","user":{"login":"anronin","id":7234792,"avatar_url":"https://avatars.githubusercontent.com/u/7234792?v=3","gravatar_id":"","url":"https://api.github.com/users/anronin","html_url":"https://github.com/anronin","followers_url":"https://api.github.com/users/anronin/followers","following_url":"https://api.github.com/users/anronin/following{/other_user}","gists_url":"https://api.github.com/users/anronin/gists{/gist_id}","starred_url":"https://api.github.com/users/anronin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anronin/subscriptions","organizations_url":"https://api.github.com/users/anronin/orgs","repos_url":"https://api.github.com/users/anronin/repos","events_url":"https://api.github.com/users/anronin/events{/privacy}","received_events_url":"https://api.github.com/users/anronin/received_events","type":"User","site_admin":false},"body":"so, what arguments the `get_file_link` function takes? like, `%Nadia.Model.File` struct?","created_at":"2016-02-24T08:28:55Z","updated_at":"2016-02-24T08:28:55Z","html_url":"https://github.com/zhyu/nadia/pull/16#discussion_r53907180","pull_request_url":"https://api.github.com/repos/zhyu/nadia/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/comments/53907180"},"html":{"href":"https://github.com/zhyu/nadia/pull/16#discussion_r53907180"},"pull_request":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/zhyu/nadia/pulls/16","id":59026073,"html_url":"https://github.com/zhyu/nadia/pull/16","diff_url":"https://github.com/zhyu/nadia/pull/16.diff","patch_url":"https://github.com/zhyu/nadia/pull/16.patch","issue_url":"https://api.github.com/repos/zhyu/nadia/issues/16","number":16,"state":"open","locked":false,"title":"very naive implementation get_file_link function","user":{"login":"anronin","id":7234792,"avatar_url":"https://avatars.githubusercontent.com/u/7234792?v=3","gravatar_id":"","url":"https://api.github.com/users/anronin","html_url":"https://github.com/anronin","followers_url":"https://api.github.com/users/anronin/followers","following_url":"https://api.github.com/users/anronin/following{/other_user}","gists_url":"https://api.github.com/users/anronin/gists{/gist_id}","starred_url":"https://api.github.com/users/anronin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anronin/subscriptions","organizations_url":"https://api.github.com/users/anronin/orgs","repos_url":"https://api.github.com/users/anronin/repos","events_url":"https://api.github.com/users/anronin/events{/privacy}","received_events_url":"https://api.github.com/users/anronin/received_events","type":"User","site_admin":false},"body":"https://github.com/zhyu/nadia/issues/11 here to start. you can tell me what need to improve or transform","created_at":"2016-02-11T12:49:05Z","updated_at":"2016-02-24T08:28:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a71c816a4df394396ca3f3767a234ddbdcfe92c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zhyu/nadia/pulls/16/commits","review_comments_url":"https://api.github.com/repos/zhyu/nadia/pulls/16/comments","review_comment_url":"https://api.github.com/repos/zhyu/nadia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zhyu/nadia/issues/16/comments","statuses_url":"https://api.github.com/repos/zhyu/nadia/statuses/830358fd87583b61398a2cfc416deda210e713d6","head":{"label":"anronin:master","ref":"master","sha":"830358fd87583b61398a2cfc416deda210e713d6","user":{"login":"anronin","id":7234792,"avatar_url":"https://avatars.githubusercontent.com/u/7234792?v=3","gravatar_id":"","url":"https://api.github.com/users/anronin","html_url":"https://github.com/anronin","followers_url":"https://api.github.com/users/anronin/followers","following_url":"https://api.github.com/users/anronin/following{/other_user}","gists_url":"https://api.github.com/users/anronin/gists{/gist_id}","starred_url":"https://api.github.com/users/anronin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anronin/subscriptions","organizations_url":"https://api.github.com/users/anronin/orgs","repos_url":"https://api.github.com/users/anronin/repos","events_url":"https://api.github.com/users/anronin/events{/privacy}","received_events_url":"https://api.github.com/users/anronin/received_events","type":"User","site_admin":false},"repo":{"id":51363099,"name":"nadia","full_name":"anronin/nadia","owner":{"login":"anronin","id":7234792,"avatar_url":"https://avatars.githubusercontent.com/u/7234792?v=3","gravatar_id":"","url":"https://api.github.com/users/anronin","html_url":"https://github.com/anronin","followers_url":"https://api.github.com/users/anronin/followers","following_url":"https://api.github.com/users/anronin/following{/other_user}","gists_url":"https://api.github.com/users/anronin/gists{/gist_id}","starred_url":"https://api.github.com/users/anronin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anronin/subscriptions","organizations_url":"https://api.github.com/users/anronin/orgs","repos_url":"https://api.github.com/users/anronin/repos","events_url":"https://api.github.com/users/anronin/events{/privacy}","received_events_url":"https://api.github.com/users/anronin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anronin/nadia","description":"Telegram Bot API Wrapper written in Elixir","fork":true,"url":"https://api.github.com/repos/anronin/nadia","forks_url":"https://api.github.com/repos/anronin/nadia/forks","keys_url":"https://api.github.com/repos/anronin/nadia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anronin/nadia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anronin/nadia/teams","hooks_url":"https://api.github.com/repos/anronin/nadia/hooks","issue_events_url":"https://api.github.com/repos/anronin/nadia/issues/events{/number}","events_url":"https://api.github.com/repos/anronin/nadia/events","assignees_url":"https://api.github.com/repos/anronin/nadia/assignees{/user}","branches_url":"https://api.github.com/repos/anronin/nadia/branches{/branch}","tags_url":"https://api.github.com/repos/anronin/nadia/tags","blobs_url":"https://api.github.com/repos/anronin/nadia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anronin/nadia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anronin/nadia/git/refs{/sha}","trees_url":"https://api.github.com/repos/anronin/nadia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anronin/nadia/statuses/{sha}","languages_url":"https://api.github.com/repos/anronin/nadia/languages","stargazers_url":"https://api.github.com/repos/anronin/nadia/stargazers","contributors_url":"https://api.github.com/repos/anronin/nadia/contributors","subscribers_url":"https://api.github.com/repos/anronin/nadia/subscribers","subscription_url":"https://api.github.com/repos/anronin/nadia/subscription","commits_url":"https://api.github.com/repos/anronin/nadia/commits{/sha}","git_commits_url":"https://api.github.com/repos/anronin/nadia/git/commits{/sha}","comments_url":"https://api.github.com/repos/anronin/nadia/comments{/number}","issue_comment_url":"https://api.github.com/repos/anronin/nadia/issues/comments{/number}","contents_url":"https://api.github.com/repos/anronin/nadia/contents/{+path}","compare_url":"https://api.github.com/repos/anronin/nadia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anronin/nadia/merges","archive_url":"https://api.github.com/repos/anronin/nadia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anronin/nadia/downloads","issues_url":"https://api.github.com/repos/anronin/nadia/issues{/number}","pulls_url":"https://api.github.com/repos/anronin/nadia/pulls{/number}","milestones_url":"https://api.github.com/repos/anronin/nadia/milestones{/number}","notifications_url":"https://api.github.com/repos/anronin/nadia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anronin/nadia/labels{/name}","releases_url":"https://api.github.com/repos/anronin/nadia/releases{/id}","deployments_url":"https://api.github.com/repos/anronin/nadia/deployments","created_at":"2016-02-09T11:34:50Z","updated_at":"2016-02-09T11:34:51Z","pushed_at":"2016-02-12T11:39:51Z","git_url":"git://github.com/anronin/nadia.git","ssh_url":"git@github.com:anronin/nadia.git","clone_url":"https://github.com/anronin/nadia.git","svn_url":"https://github.com/anronin/nadia","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"zhyu:master","ref":"master","sha":"0e58e8995007b590103b91e2a0f14f71f84e8ca9","user":{"login":"zhyu","id":1728523,"avatar_url":"https://avatars.githubusercontent.com/u/1728523?v=3","gravatar_id":"","url":"https://api.github.com/users/zhyu","html_url":"https://github.com/zhyu","followers_url":"https://api.github.com/users/zhyu/followers","following_url":"https://api.github.com/users/zhyu/following{/other_user}","gists_url":"https://api.github.com/users/zhyu/gists{/gist_id}","starred_url":"https://api.github.com/users/zhyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhyu/subscriptions","organizations_url":"https://api.github.com/users/zhyu/orgs","repos_url":"https://api.github.com/users/zhyu/repos","events_url":"https://api.github.com/users/zhyu/events{/privacy}","received_events_url":"https://api.github.com/users/zhyu/received_events","type":"User","site_admin":false},"repo":{"id":40744380,"name":"nadia","full_name":"zhyu/nadia","owner":{"login":"zhyu","id":1728523,"avatar_url":"https://avatars.githubusercontent.com/u/1728523?v=3","gravatar_id":"","url":"https://api.github.com/users/zhyu","html_url":"https://github.com/zhyu","followers_url":"https://api.github.com/users/zhyu/followers","following_url":"https://api.github.com/users/zhyu/following{/other_user}","gists_url":"https://api.github.com/users/zhyu/gists{/gist_id}","starred_url":"https://api.github.com/users/zhyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhyu/subscriptions","organizations_url":"https://api.github.com/users/zhyu/orgs","repos_url":"https://api.github.com/users/zhyu/repos","events_url":"https://api.github.com/users/zhyu/events{/privacy}","received_events_url":"https://api.github.com/users/zhyu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhyu/nadia","description":"Telegram Bot API Wrapper written in Elixir","fork":false,"url":"https://api.github.com/repos/zhyu/nadia","forks_url":"https://api.github.com/repos/zhyu/nadia/forks","keys_url":"https://api.github.com/repos/zhyu/nadia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhyu/nadia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhyu/nadia/teams","hooks_url":"https://api.github.com/repos/zhyu/nadia/hooks","issue_events_url":"https://api.github.com/repos/zhyu/nadia/issues/events{/number}","events_url":"https://api.github.com/repos/zhyu/nadia/events","assignees_url":"https://api.github.com/repos/zhyu/nadia/assignees{/user}","branches_url":"https://api.github.com/repos/zhyu/nadia/branches{/branch}","tags_url":"https://api.github.com/repos/zhyu/nadia/tags","blobs_url":"https://api.github.com/repos/zhyu/nadia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhyu/nadia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhyu/nadia/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhyu/nadia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhyu/nadia/statuses/{sha}","languages_url":"https://api.github.com/repos/zhyu/nadia/languages","stargazers_url":"https://api.github.com/repos/zhyu/nadia/stargazers","contributors_url":"https://api.github.com/repos/zhyu/nadia/contributors","subscribers_url":"https://api.github.com/repos/zhyu/nadia/subscribers","subscription_url":"https://api.github.com/repos/zhyu/nadia/subscription","commits_url":"https://api.github.com/repos/zhyu/nadia/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhyu/nadia/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhyu/nadia/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhyu/nadia/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhyu/nadia/contents/{+path}","compare_url":"https://api.github.com/repos/zhyu/nadia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhyu/nadia/merges","archive_url":"https://api.github.com/repos/zhyu/nadia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhyu/nadia/downloads","issues_url":"https://api.github.com/repos/zhyu/nadia/issues{/number}","pulls_url":"https://api.github.com/repos/zhyu/nadia/pulls{/number}","milestones_url":"https://api.github.com/repos/zhyu/nadia/milestones{/number}","notifications_url":"https://api.github.com/repos/zhyu/nadia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhyu/nadia/labels{/name}","releases_url":"https://api.github.com/repos/zhyu/nadia/releases{/id}","deployments_url":"https://api.github.com/repos/zhyu/nadia/deployments","created_at":"2015-08-15T02:50:36Z","updated_at":"2016-02-16T11:31:32Z","pushed_at":"2016-02-12T11:39:51Z","git_url":"git://github.com/zhyu/nadia.git","ssh_url":"git@github.com:zhyu/nadia.git","clone_url":"https://github.com/zhyu/nadia.git","svn_url":"https://github.com/zhyu/nadia","homepage":null,"size":62,"stargazers_count":20,"watchers_count":20,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/16"},"html":{"href":"https://github.com/zhyu/nadia/pull/16"},"issue":{"href":"https://api.github.com/repos/zhyu/nadia/issues/16"},"comments":{"href":"https://api.github.com/repos/zhyu/nadia/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zhyu/nadia/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/zhyu/nadia/statuses/830358fd87583b61398a2cfc416deda210e713d6"}}}}