{"action":"created","issue":{"url":"https://api.github.com/repos/vysheng/tg/issues/782","labels_url":"https://api.github.com/repos/vysheng/tg/issues/782/labels{/name}","comments_url":"https://api.github.com/repos/vysheng/tg/issues/782/comments","events_url":"https://api.github.com/repos/vysheng/tg/issues/782/events","html_url":"https://github.com/vysheng/tg/issues/782","id":108337589,"number":782,"title":"How do I get history and delete messages?","user":{"login":"drequivalent","id":1463277,"avatar_url":"https://avatars.githubusercontent.com/u/1463277?v=3","gravatar_id":"","url":"https://api.github.com/users/drequivalent","html_url":"https://github.com/drequivalent","followers_url":"https://api.github.com/users/drequivalent/followers","following_url":"https://api.github.com/users/drequivalent/following{/other_user}","gists_url":"https://api.github.com/users/drequivalent/gists{/gist_id}","starred_url":"https://api.github.com/users/drequivalent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drequivalent/subscriptions","organizations_url":"https://api.github.com/users/drequivalent/orgs","repos_url":"https://api.github.com/users/drequivalent/repos","events_url":"https://api.github.com/users/drequivalent/events{/privacy}","received_events_url":"https://api.github.com/users/drequivalent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-25T14:31:14Z","updated_at":"2015-09-25T14:54:22Z","closed_at":null,"body":"Let's assume hypotetical situation: I want to remove some sent messages from history. I know, we have `delete_msg` command, that takes `msg-id` on input. Where do I find message IDs? Supposedly, in chat history, right? How do I get history? I issue `history` command, right? It takes `peer` as input. How do i get those peers? From `contact list`? Well, may be (numbers are made up):\r\n```\r\n> contact_list\r\n\r\nab +79057082341\r\ncd +79057024432\r\nef +79033446356\r\n```\r\nBut:\r\n\r\n```\r\n> history ab\r\nFAIL: 38: can not parse arg #1\r\n> history \"ab\"\r\n> \r\n```\r\n\r\nHow do I properly get history?"},"comment":{"url":"https://api.github.com/repos/vysheng/tg/issues/comments/143244339","html_url":"https://github.com/vysheng/tg/issues/782#issuecomment-143244339","issue_url":"https://api.github.com/repos/vysheng/tg/issues/782","id":143244339,"user":{"login":"LukeLR","id":3177243,"avatar_url":"https://avatars.githubusercontent.com/u/3177243?v=3","gravatar_id":"","url":"https://api.github.com/users/LukeLR","html_url":"https://github.com/LukeLR","followers_url":"https://api.github.com/users/LukeLR/followers","following_url":"https://api.github.com/users/LukeLR/following{/other_user}","gists_url":"https://api.github.com/users/LukeLR/gists{/gist_id}","starred_url":"https://api.github.com/users/LukeLR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukeLR/subscriptions","organizations_url":"https://api.github.com/users/LukeLR/orgs","repos_url":"https://api.github.com/users/LukeLR/repos","events_url":"https://api.github.com/users/LukeLR/events{/privacy}","received_events_url":"https://api.github.com/users/LukeLR/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T14:54:22Z","updated_at":"2015-09-25T14:54:22Z","body":"I think you need to get dialog_list for accessing history, not contact list.\n\n\n\n> On 25 Sep 2015, at 4:31 pm, drequivalent <notifications@github.com> wrote:\n> \n> Let's assume hypotetical situation: I want to remove some sent messages from history. I know, we have delete_msg command, that takes msg-id on input. Where do I find message IDs? Supposedly, in chat history, right? How do I get history? I issue history command, right? It takes peer as input. How do i get those peers? From contact list? Well, may be (numbers are made up):\n> \n> > contact_list\n> \n> ab +79057082341\n> cd +79057024432\n> ef +79033446356\n> But:\n> \n> > history ab\n> FAIL: 38: can not parse arg #1\n> > history \"ab\"\n> > \n> How do I properly get history?\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}