{"action":"closed","number":11,"pull_request":{"url":"https://api.github.com/repos/schafezp/karmabot/pulls/11","id":215121997,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MTIxOTk3","html_url":"https://github.com/schafezp/karmabot/pull/11","diff_url":"https://github.com/schafezp/karmabot/pull/11.diff","patch_url":"https://github.com/schafezp/karmabot/pull/11.patch","issue_url":"https://api.github.com/repos/schafezp/karmabot/issues/11","number":11,"state":"closed","locked":false,"title":"add annotation for typing ChatAction and put it on some functions","user":{"login":"schafezp","id":10122464,"node_id":"MDQ6VXNlcjEwMTIyNDY0","avatar_url":"https://avatars0.githubusercontent.com/u/10122464?v=4","gravatar_id":"","url":"https://api.github.com/users/schafezp","html_url":"https://github.com/schafezp","followers_url":"https://api.github.com/users/schafezp/followers","following_url":"https://api.github.com/users/schafezp/following{/other_user}","gists_url":"https://api.github.com/users/schafezp/gists{/gist_id}","starred_url":"https://api.github.com/users/schafezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schafezp/subscriptions","organizations_url":"https://api.github.com/users/schafezp/orgs","repos_url":"https://api.github.com/users/schafezp/repos","events_url":"https://api.github.com/users/schafezp/events{/privacy}","received_events_url":"https://api.github.com/users/schafezp/received_events","type":"User","site_admin":false},"body":"To make the telegram bot seem more responsive the bot can issue chat actions. \r\nhttps://python-telegram-bot.readthedocs.io/en/stable/telegram.chataction.html?highlight=chataction\r\n\r\nThis pull request adds the TYPING ChatAction to /showkarma, /chatinfo, /showversion, and /userinfo\r\n\r\nOne benefit of ChatActions is that they give users an expectation if the bot is actually listening. This makes downtimes more apparent to users rather than assuming they are very high latency times. For very fast responding api calls the typing chat action pops up and quickly disappears without being easily seen; perhaps chat actions should not be triggered in those cases. ","created_at":"2018-09-12T23:13:02Z","updated_at":"2018-09-12T23:14:38Z","closed_at":"2018-09-12T23:14:38Z","merged_at":"2018-09-12T23:14:38Z","merge_commit_sha":"41724222237f859c8b694300f405448f3b22e089","assignee":{"login":"schafezp","id":10122464,"node_id":"MDQ6VXNlcjEwMTIyNDY0","avatar_url":"https://avatars0.githubusercontent.com/u/10122464?v=4","gravatar_id":"","url":"https://api.github.com/users/schafezp","html_url":"https://github.com/schafezp","followers_url":"https://api.github.com/users/schafezp/followers","following_url":"https://api.github.com/users/schafezp/following{/other_user}","gists_url":"https://api.github.com/users/schafezp/gists{/gist_id}","starred_url":"https://api.github.com/users/schafezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schafezp/subscriptions","organizations_url":"https://api.github.com/users/schafezp/orgs","repos_url":"https://api.github.com/users/schafezp/repos","events_url":"https://api.github.com/users/schafezp/events{/privacy}","received_events_url":"https://api.github.com/users/schafezp/received_events","type":"User","site_admin":false},"assignees":[{"login":"schafezp","id":10122464,"node_id":"MDQ6VXNlcjEwMTIyNDY0","avatar_url":"https://avatars0.githubusercontent.com/u/10122464?v=4","gravatar_id":"","url":"https://api.github.com/users/schafezp","html_url":"https://github.com/schafezp","followers_url":"https://api.github.com/users/schafezp/followers","following_url":"https://api.github.com/users/schafezp/following{/other_user}","gists_url":"https://api.github.com/users/schafezp/gists{/gist_id}","starred_url":"https://api.github.com/users/schafezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schafezp/subscriptions","organizations_url":"https://api.github.com/users/schafezp/orgs","repos_url":"https://api.github.com/users/schafezp/repos","events_url":"https://api.github.com/users/schafezp/events{/privacy}","received_events_url":"https://api.github.com/users/schafezp/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/schafezp/karmabot/pulls/11/commits","review_comments_url":"https://api.github.com/repos/schafezp/karmabot/pulls/11/comments","review_comment_url":"https://api.github.com/repos/schafezp/karmabot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/schafezp/karmabot/issues/11/comments","statuses_url":"https://api.github.com/repos/schafezp/karmabot/statuses/43913d94d9ac2ac646137a5c511222d37cc29884","head":{"label":"schafezp:use_chat_actions","ref":"use_chat_actions","sha":"43913d94d9ac2ac646137a5c511222d37cc29884","user":{"login":"schafezp","id":10122464,"node_id":"MDQ6VXNlcjEwMTIyNDY0","avatar_url":"https://avatars0.githubusercontent.com/u/10122464?v=4","gravatar_id":"","url":"https://api.github.com/users/schafezp","html_url":"https://github.com/schafezp","followers_url":"https://api.github.com/users/schafezp/followers","following_url":"https://api.github.com/users/schafezp/following{/other_user}","gists_url":"https://api.github.com/users/schafezp/gists{/gist_id}","starred_url":"https://api.github.com/users/schafezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schafezp/subscriptions","organizations_url":"https://api.github.com/users/schafezp/orgs","repos_url":"https://api.github.com/users/schafezp/repos","events_url":"https://api.github.com/users/schafezp/events{/privacy}","received_events_url":"https://api.github.com/users/schafezp/received_events","type":"User","site_admin":false},"repo":{"id":146941363,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY5NDEzNjM=","name":"karmabot","full_name":"schafezp/karmabot","owner":{"login":"schafezp","id":10122464,"node_id":"MDQ6VXNlcjEwMTIyNDY0","avatar_url":"https://avatars0.githubusercontent.com/u/10122464?v=4","gravatar_id":"","url":"https://api.github.com/users/schafezp","html_url":"https://github.com/schafezp","followers_url":"https://api.github.com/users/schafezp/followers","following_url":"https://api.github.com/users/schafezp/following{/other_user}","gists_url":"https://api.github.com/users/schafezp/gists{/gist_id}","starred_url":"https://api.github.com/users/schafezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schafezp/subscriptions","organizations_url":"https://api.github.com/users/schafezp/orgs","repos_url":"https://api.github.com/users/schafezp/repos","events_url":"https://api.github.com/users/schafezp/events{/privacy}","received_events_url":"https://api.github.com/users/schafezp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schafezp/karmabot","description":"A telegram bot designed for group chats to allow users to upvote and downvote content similar to reddit.","fork":false,"url":"https://api.github.com/repos/schafezp/karmabot","forks_url":"https://api.github.com/repos/schafezp/karmabot/forks","keys_url":"https://api.github.com/repos/schafezp/karmabot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schafezp/karmabot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schafezp/karmabot/teams","hooks_url":"https://api.github.com/repos/schafezp/karmabot/hooks","issue_events_url":"https://api.github.com/repos/schafezp/karmabot/issues/events{/number}","events_url":"https://api.github.com/repos/schafezp/karmabot/events","assignees_url":"https://api.github.com/repos/schafezp/karmabot/assignees{/user}","branches_url":"https://api.github.com/repos/schafezp/karmabot/branches{/branch}","tags_url":"https://api.github.com/repos/schafezp/karmabot/tags","blobs_url":"https://api.github.com/repos/schafezp/karmabot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schafezp/karmabot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schafezp/karmabot/git/refs{/sha}","trees_url":"https://api.github.com/repos/schafezp/karmabot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schafezp/karmabot/statuses/{sha}","languages_url":"https://api.github.com/repos/schafezp/karmabot/languages","stargazers_url":"https://api.github.com/repos/schafezp/karmabot/stargazers","contributors_url":"https://api.github.com/repos/schafezp/karmabot/contributors","subscribers_url":"https://api.github.com/repos/schafezp/karmabot/subscribers","subscription_url":"https://api.github.com/repos/schafezp/karmabot/subscription","commits_url":"https://api.github.com/repos/schafezp/karmabot/commits{/sha}","git_commits_url":"https://api.github.com/repos/schafezp/karmabot/git/commits{/sha}","comments_url":"https://api.github.com/repos/schafezp/karmabot/comments{/number}","issue_comment_url":"https://api.github.com/repos/schafezp/karmabot/issues/comments{/number}","contents_url":"https://api.github.com/repos/schafezp/karmabot/contents/{+path}","compare_url":"https://api.github.com/repos/schafezp/karmabot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schafezp/karmabot/merges","archive_url":"https://api.github.com/repos/schafezp/karmabot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schafezp/karmabot/downloads","issues_url":"https://api.github.com/repos/schafezp/karmabot/issues{/number}","pulls_url":"https://api.github.com/repos/schafezp/karmabot/pulls{/number}","milestones_url":"https://api.github.com/repos/schafezp/karmabot/milestones{/number}","notifications_url":"https://api.github.com/repos/schafezp/karmabot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schafezp/karmabot/labels{/name}","releases_url":"https://api.github.com/repos/schafezp/karmabot/releases{/id}","deployments_url":"https://api.github.com/repos/schafezp/karmabot/deployments","created_at":"2018-08-31T20:53:54Z","updated_at":"2018-09-12T21:53:55Z","pushed_at":"2018-09-12T23:14:38Z","git_url":"git://github.com/schafezp/karmabot.git","ssh_url":"git@github.com:schafezp/karmabot.git","clone_url":"https://github.com/schafezp/karmabot.git","svn_url":"https://github.com/schafezp/karmabot","homepage":null,"size":121,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"schafezp:master","ref":"master","sha":"572f49d6cb47d63a0d2f6b40cb992dee2be0089e","user":{"login":"schafezp","id":10122464,"node_id":"MDQ6VXNlcjEwMTIyNDY0","avatar_url":"https://avatars0.githubusercontent.com/u/10122464?v=4","gravatar_id":"","url":"https://api.github.com/users/schafezp","html_url":"https://github.com/schafezp","followers_url":"https://api.github.com/users/schafezp/followers","following_url":"https://api.github.com/users/schafezp/following{/other_user}","gists_url":"https://api.github.com/users/schafezp/gists{/gist_id}","starred_url":"https://api.github.com/users/schafezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schafezp/subscriptions","organizations_url":"https://api.github.com/users/schafezp/orgs","repos_url":"https://api.github.com/users/schafezp/repos","events_url":"https://api.github.com/users/schafezp/events{/privacy}","received_events_url":"https://api.github.com/users/schafezp/received_events","type":"User","site_admin":false},"repo":{"id":146941363,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY5NDEzNjM=","name":"karmabot","full_name":"schafezp/karmabot","owner":{"login":"schafezp","id":10122464,"node_id":"MDQ6VXNlcjEwMTIyNDY0","avatar_url":"https://avatars0.githubusercontent.com/u/10122464?v=4","gravatar_id":"","url":"https://api.github.com/users/schafezp","html_url":"https://github.com/schafezp","followers_url":"https://api.github.com/users/schafezp/followers","following_url":"https://api.github.com/users/schafezp/following{/other_user}","gists_url":"https://api.github.com/users/schafezp/gists{/gist_id}","starred_url":"https://api.github.com/users/schafezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schafezp/subscriptions","organizations_url":"https://api.github.com/users/schafezp/orgs","repos_url":"https://api.github.com/users/schafezp/repos","events_url":"https://api.github.com/users/schafezp/events{/privacy}","received_events_url":"https://api.github.com/users/schafezp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schafezp/karmabot","description":"A telegram bot designed for group chats to allow users to upvote and downvote content similar to reddit.","fork":false,"url":"https://api.github.com/repos/schafezp/karmabot","forks_url":"https://api.github.com/repos/schafezp/karmabot/forks","keys_url":"https://api.github.com/repos/schafezp/karmabot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schafezp/karmabot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schafezp/karmabot/teams","hooks_url":"https://api.github.com/repos/schafezp/karmabot/hooks","issue_events_url":"https://api.github.com/repos/schafezp/karmabot/issues/events{/number}","events_url":"https://api.github.com/repos/schafezp/karmabot/events","assignees_url":"https://api.github.com/repos/schafezp/karmabot/assignees{/user}","branches_url":"https://api.github.com/repos/schafezp/karmabot/branches{/branch}","tags_url":"https://api.github.com/repos/schafezp/karmabot/tags","blobs_url":"https://api.github.com/repos/schafezp/karmabot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schafezp/karmabot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schafezp/karmabot/git/refs{/sha}","trees_url":"https://api.github.com/repos/schafezp/karmabot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schafezp/karmabot/statuses/{sha}","languages_url":"https://api.github.com/repos/schafezp/karmabot/languages","stargazers_url":"https://api.github.com/repos/schafezp/karmabot/stargazers","contributors_url":"https://api.github.com/repos/schafezp/karmabot/contributors","subscribers_url":"https://api.github.com/repos/schafezp/karmabot/subscribers","subscription_url":"https://api.github.com/repos/schafezp/karmabot/subscription","commits_url":"https://api.github.com/repos/schafezp/karmabot/commits{/sha}","git_commits_url":"https://api.github.com/repos/schafezp/karmabot/git/commits{/sha}","comments_url":"https://api.github.com/repos/schafezp/karmabot/comments{/number}","issue_comment_url":"https://api.github.com/repos/schafezp/karmabot/issues/comments{/number}","contents_url":"https://api.github.com/repos/schafezp/karmabot/contents/{+path}","compare_url":"https://api.github.com/repos/schafezp/karmabot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schafezp/karmabot/merges","archive_url":"https://api.github.com/repos/schafezp/karmabot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schafezp/karmabot/downloads","issues_url":"https://api.github.com/repos/schafezp/karmabot/issues{/number}","pulls_url":"https://api.github.com/repos/schafezp/karmabot/pulls{/number}","milestones_url":"https://api.github.com/repos/schafezp/karmabot/milestones{/number}","notifications_url":"https://api.github.com/repos/schafezp/karmabot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schafezp/karmabot/labels{/name}","releases_url":"https://api.github.com/repos/schafezp/karmabot/releases{/id}","deployments_url":"https://api.github.com/repos/schafezp/karmabot/deployments","created_at":"2018-08-31T20:53:54Z","updated_at":"2018-09-12T21:53:55Z","pushed_at":"2018-09-12T23:14:38Z","git_url":"git://github.com/schafezp/karmabot.git","ssh_url":"git@github.com:schafezp/karmabot.git","clone_url":"https://github.com/schafezp/karmabot.git","svn_url":"https://github.com/schafezp/karmabot","homepage":null,"size":121,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/schafezp/karmabot/pulls/11"},"html":{"href":"https://github.com/schafezp/karmabot/pull/11"},"issue":{"href":"https://api.github.com/repos/schafezp/karmabot/issues/11"},"comments":{"href":"https://api.github.com/repos/schafezp/karmabot/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/schafezp/karmabot/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/schafezp/karmabot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/schafezp/karmabot/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/schafezp/karmabot/statuses/43913d94d9ac2ac646137a5c511222d37cc29884"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"schafezp","id":10122464,"node_id":"MDQ6VXNlcjEwMTIyNDY0","avatar_url":"https://avatars0.githubusercontent.com/u/10122464?v=4","gravatar_id":"","url":"https://api.github.com/users/schafezp","html_url":"https://github.com/schafezp","followers_url":"https://api.github.com/users/schafezp/followers","following_url":"https://api.github.com/users/schafezp/following{/other_user}","gists_url":"https://api.github.com/users/schafezp/gists{/gist_id}","starred_url":"https://api.github.com/users/schafezp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schafezp/subscriptions","organizations_url":"https://api.github.com/users/schafezp/orgs","repos_url":"https://api.github.com/users/schafezp/repos","events_url":"https://api.github.com/users/schafezp/events{/privacy}","received_events_url":"https://api.github.com/users/schafezp/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":12,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"schafezp"}}