{"action":"opened","issue":{"url":"https://api.github.com/repos/luckydonald/pytg/issues/90","repository_url":"https://api.github.com/repos/luckydonald/pytg","labels_url":"https://api.github.com/repos/luckydonald/pytg/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/luckydonald/pytg/issues/90/comments","events_url":"https://api.github.com/repos/luckydonald/pytg/issues/90/events","html_url":"https://github.com/luckydonald/pytg/issues/90","id":161034535,"number":90,"title":"export_chat_link result is a link","user":{"login":"firewut","id":899865,"avatar_url":"https://avatars.githubusercontent.com/u/899865?v=3","gravatar_id":"","url":"https://api.github.com/users/firewut","html_url":"https://github.com/firewut","followers_url":"https://api.github.com/users/firewut/followers","following_url":"https://api.github.com/users/firewut/following{/other_user}","gists_url":"https://api.github.com/users/firewut/gists{/gist_id}","starred_url":"https://api.github.com/users/firewut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firewut/subscriptions","organizations_url":"https://api.github.com/users/firewut/orgs","repos_url":"https://api.github.com/users/firewut/repos","events_url":"https://api.github.com/users/firewut/events{/privacy}","received_events_url":"https://api.github.com/users/firewut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-18T17:22:01Z","updated_at":"2016-06-18T17:22:01Z","closed_at":null,"body":"### The problem\r\n[group_chat](https://github.com/luckydonald/pytg/blob/master/DOCUMENTATION_manual.md#group-chat-related) related `export_chat_link` method returns a `{\"result\":\"https://telegram.me/joinchat/my-link\"}`. Method raises \r\n```\r\npytg.exceptions.IllegalResponseException: Found: {'result': 'https://telegram.me/joinchat/AhQ6ZggVDJKeLlrug9jxAA'}\r\n```\r\n\r\n### Your environment\r\npython: 3.4\r\n\r\npytg: v0.4.10\r\n\r\nOS: Dockerized ubuntu\r\n\r\ntg: Telegram-cli version 1.4.1 (uses tgl version 2.1.0)\r\n\r\n### Steps to reproduce\r\nDetailed steps to reproduce the issue.\r\n```\r\nsender = Sender(\"127.0.0.1\", 4458)\r\nsender.create_group_chat(topic, user)\r\nlink=sender.export_chat_link(topic)\r\n```\r\n\r\n### Expected behaviour\r\n\r\n`link` should be equal 'https://telegram.me/joinchat/AhQ6ZggVDJKeLlrug9jxAA'\r\n\r\n### Actual behaviour\r\n\r\nBut exception is being raised:\r\n\r\n```\r\npytg.exceptions.IllegalResponseException: Found: {'result': 'https://telegram.me/joinchat/AhQ6ZggVDJKeLlrug9jxAA'}\r\n```\r\n\r\n\r\n### Full debug output\r\n\r\n```python\r\nDEBUG:pytg.sender:Sending command >[disable_preview] contact_list \r\n<\r\nDEBUG:pytg.sender:Socket Connected.\r\nDEBUG:pytg.sender:All Sent.\r\nDEBUG:pytg.sender:Parsing dialog_list: Argument 100 - [limit] (needed)\r\nDEBUG:pytg.sender:Skipping missing optional parameter #1 [offset] (type NonNegativeNumber) in function dialog_list.\r\nDEBUG:pytg.sender:Sending command >[disable_preview] dialog_list 100\r\n<\r\nDEBUG:pytg.sender:Socket Connected.\r\nDEBUG:pytg.sender:All Sent.\r\nDEBUG:pytg.sender:Parsing chat_info: Argument DO_NOT_DELETE_IT - <chat> (needed)\r\nDEBUG:pytg.sender:Sending command >[disable_preview] chat_info DO_NOT_DELETE_IT\r\n<\r\nDEBUG:pytg.sender:Socket Connected.\r\nDEBUG:pytg.sender:All Sent.\r\nDEBUG:pytg.sender:Parsing export_chat_link: Argument DO_NOT_DELETE_IT - <chat> (needed)\r\nDEBUG:pytg.sender:Sending command >[disable_preview] export_chat_link DO_NOT_DELETE_IT\r\n<\r\nDEBUG:pytg.sender:Socket Connected.\r\nDEBUG:pytg.sender:All Sent.\r\nTraceback (most recent call last):\r\n  File \"main.py\", line 33, in <module>\r\n    print(create_group_chat(\"DO_NOT_DELETE_IT\", \"photo\", \"Chat description\", \"@combot\"))\r\n  File \"main.py\", line 25, in create_group_chat\r\n    res3 = sender.export_chat_link(topic)\r\n  File \"/usr/local/lib/python3.4/dist-packages/pytg/sender.py\", line 630, in command_alias\r\n    return self.execute_function(command_name, *args, **kwargs)\r\n  File \"/usr/local/lib/python3.4/dist-packages/pytg/sender.py\", line 351, in execute_function\r\n    return result_parser(message)\r\n  File \"/usr/local/lib/python3.4/dist-packages/pytg/result_parser.py\", line 56, in success_fail\r\n    raise IllegalResponseException(\"Found: {}\".format(json))\r\npytg.exceptions.IllegalResponseException: Found: {'result': 'https://telegram.me/joinchat/AhQ6ZggVDJKeLlrug9jxAA'}\r\nINFO:pytg.sender:Quit Sending. Not allowing sending anymore.\r\nWARNING:pytg.sender:Terminating currently sending request.\r\nINFO:pytg.sender:Currently not Sending.\r\n```"}}
{"actor":{"display_login":"firewut"}}