{"action":"closed","issue":{"url":"https://api.github.com/repos/tdlib/td/issues/269","repository_url":"https://api.github.com/repos/tdlib/td","labels_url":"https://api.github.com/repos/tdlib/td/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/tdlib/td/issues/269/comments","events_url":"https://api.github.com/repos/tdlib/td/issues/269/events","html_url":"https://github.com/tdlib/td/issues/269","id":328757499,"node_id":"MDU6SXNzdWUzMjg3NTc0OTk=","number":269,"title":"tg_cli usage","user":{"login":"panda2048","id":33477793,"node_id":"MDQ6VXNlcjMzNDc3Nzkz","avatar_url":"https://avatars1.githubusercontent.com/u/33477793?v=4","gravatar_id":"","url":"https://api.github.com/users/panda2048","html_url":"https://github.com/panda2048","followers_url":"https://api.github.com/users/panda2048/followers","following_url":"https://api.github.com/users/panda2048/following{/other_user}","gists_url":"https://api.github.com/users/panda2048/gists{/gist_id}","starred_url":"https://api.github.com/users/panda2048/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panda2048/subscriptions","organizations_url":"https://api.github.com/users/panda2048/orgs","repos_url":"https://api.github.com/users/panda2048/repos","events_url":"https://api.github.com/users/panda2048/events{/privacy}","received_events_url":"https://api.github.com/users/panda2048/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-02T16:28:52Z","updated_at":"2018-06-03T22:49:00Z","closed_at":"2018-06-03T22:49:00Z","author_association":"NONE","body":"I just got the lib built and I found that there is a tg_cli \r\nSo I plan to use it to test the telegram API ID and hash\r\nHowever, after starting, and I type command \"GetChats\" and got \"Unauthorised\" message\r\n\r\nWhat is possible missing in the setup?\r\nThanks\r\n\r\n[ 3][t 0][1527956843.427442074][cli.cpp:967][!CliClient]\tCMD:[GetChats]\r\n[ 3][t 0][1527956843.427522182][Td.cpp:3933][!Td][&td_requests]\tReceive request 5: getChats {\r\n  offset_order = 9223372036854775807\r\n  offset_chat_id = 0\r\n  limit = 10000\r\n}\r\n\r\n[ 3][t 0][1527956843.427546978][Td.cpp:4663][!Td][&td_requests]\tSending error for request 5: error { code = 401 message = \"Unauthorized\" }\r\n[ 3][t 0][1527956843.427561998][cli.cpp:560][!Td]\ton_error [id=5] error {\r\n  code = 401\r\n  message = \"Unauthorized\"\r\n}\r\n"}}
{"actor":{"display_login":"panda2048"}}