{"action":"opened","issue":{"url":"https://api.github.com/repos/luckydonald/pytg/issues/92","repository_url":"https://api.github.com/repos/luckydonald/pytg","labels_url":"https://api.github.com/repos/luckydonald/pytg/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/luckydonald/pytg/issues/92/comments","events_url":"https://api.github.com/repos/luckydonald/pytg/issues/92/events","html_url":"https://github.com/luckydonald/pytg/issues/92","id":162320525,"number":92,"title":"KeyError: 'peer_id'","user":{"login":"a3dho3yn","id":5849028,"avatar_url":"https://avatars.githubusercontent.com/u/5849028?v=3","gravatar_id":"","url":"https://api.github.com/users/a3dho3yn","html_url":"https://github.com/a3dho3yn","followers_url":"https://api.github.com/users/a3dho3yn/followers","following_url":"https://api.github.com/users/a3dho3yn/following{/other_user}","gists_url":"https://api.github.com/users/a3dho3yn/gists{/gist_id}","starred_url":"https://api.github.com/users/a3dho3yn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3dho3yn/subscriptions","organizations_url":"https://api.github.com/users/a3dho3yn/orgs","repos_url":"https://api.github.com/users/a3dho3yn/repos","events_url":"https://api.github.com/users/a3dho3yn/events{/privacy}","received_events_url":"https://api.github.com/users/a3dho3yn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-26T09:47:11Z","updated_at":"2016-06-26T09:47:11Z","closed_at":null,"body":"### The problem\r\nWhile using receiver, upon receiving a message, this exception raises:\r\n```\r\nException in thread Receiver (pytg):\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/threading.py\", line 920, in _bootstrap_inner\r\n    self.run()\r\n  File \"/usr/lib/python3.4/threading.py\", line 868, in run\r\n    self._target(*self._args, **self._kwargs)\r\n  File \"/usr/local/lib/python3.4/dist-packages/pytg/receiver.py\", line 149, in _receiver\r\n    self._add_message(text)\r\n  File \"/usr/local/lib/python3.4/dist-packages/pytg/receiver.py\", line 184, in _add_message\r\n    message = fix_message(message)\r\n  File \"/usr/local/lib/python3.4/dist-packages/pytg/fix_msg_array.py\", line 24, in fix_message\r\n    message[\"sender\"] = fix_peer(message[\"from\"])\r\n  File \"/usr/local/lib/python3.4/dist-packages/pytg/fix_msg_array.py\", line 63, in fix_peer\r\n    peer[\"cmd\"] = u(\"{type}#{peer_id}\").format(type=peer[\"type\"], peer_id=peer[\"peer_id\"])\r\nKeyError: 'peer_id'\r\n```\r\n\r\n### Your environment\r\nDebia 8.4\r\nPython 3.4.2\r\npytg 0.4.8\r\n\r\n### Steps to reproduce\r\nRun bot dump example\r\n\r\n### Expected behaviour\r\nPrint received message\r\n\r\n### Actual behaviour\r\nRaises error!\r\n"}}
{"actor":{"display_login":"a3dho3yn"}}