{"action":"created","issue":{"url":"https://api.github.com/repos/tvdstaaij/telegram-history-dump/issues/2","labels_url":"https://api.github.com/repos/tvdstaaij/telegram-history-dump/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/tvdstaaij/telegram-history-dump/issues/2/comments","events_url":"https://api.github.com/repos/tvdstaaij/telegram-history-dump/issues/2/events","html_url":"https://github.com/tvdstaaij/telegram-history-dump/issues/2","id":113276222,"number":2,"title":"Missing messages in groups, from people not in contact list. Need to re-run the script. ","user":{"login":"stefanmaric","id":1009040,"avatar_url":"https://avatars.githubusercontent.com/u/1009040?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanmaric","html_url":"https://github.com/stefanmaric","followers_url":"https://api.github.com/users/stefanmaric/followers","following_url":"https://api.github.com/users/stefanmaric/following{/other_user}","gists_url":"https://api.github.com/users/stefanmaric/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanmaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanmaric/subscriptions","organizations_url":"https://api.github.com/users/stefanmaric/orgs","repos_url":"https://api.github.com/users/stefanmaric/repos","events_url":"https://api.github.com/users/stefanmaric/events{/privacy}","received_events_url":"https://api.github.com/users/stefanmaric/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-26T03:05:07Z","updated_at":"2015-11-18T15:26:21Z","closed_at":null,"body":"I've been trying to export message history from some group chats. I got messages like the following in the process:\r\n\r\n```\r\nW, [2015-10-25T16:29:00.220902 #29023]  WARN -- : Message without date: {\"event\"=>\"message\", \"id\"=>372588}\r\n```\r\n\r\nAnd the json line ends up like:\r\n\r\n```json\r\n{\"event\":\"message\",\"id\":372588}\r\n```\r\n\r\nThese come from certain users not in my contact list; but there are some others not in my contact list whose messages are exported correctly and I can't tell what determines whose messages are exported and whose not.\r\n\r\nThen I noticed that if I re-run the script with same settings, no warnings are shown and all messages are exported. Like if they were cached in the first run so second one goes smoothly; maybe asynchronous calls to get the user info?\r\n\r\nI repeatedly get this behavior with diff chats. I also get the same result if I delete my `~/.telegram-cli` folder and start again."},"comment":{"url":"https://api.github.com/repos/tvdstaaij/telegram-history-dump/issues/comments/157748107","html_url":"https://github.com/tvdstaaij/telegram-history-dump/issues/2#issuecomment-157748107","issue_url":"https://api.github.com/repos/tvdstaaij/telegram-history-dump/issues/2","id":157748107,"user":{"login":"stefanmaric","id":1009040,"avatar_url":"https://avatars.githubusercontent.com/u/1009040?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanmaric","html_url":"https://github.com/stefanmaric","followers_url":"https://api.github.com/users/stefanmaric/followers","following_url":"https://api.github.com/users/stefanmaric/following{/other_user}","gists_url":"https://api.github.com/users/stefanmaric/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanmaric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanmaric/subscriptions","organizations_url":"https://api.github.com/users/stefanmaric/orgs","repos_url":"https://api.github.com/users/stefanmaric/repos","events_url":"https://api.github.com/users/stefanmaric/events{/privacy}","received_events_url":"https://api.github.com/users/stefanmaric/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T15:26:21Z","updated_at":"2015-11-18T15:26:21Z","body":"Just an update if someone reads:\r\n\r\nI have been using this script to export my history. The bug persists, first attempt will lack a lot of data but second run with same config produces a perfect export."}}