{"action":"created","issue":{"url":"https://api.github.com/repos/vysheng/tg/issues/918","labels_url":"https://api.github.com/repos/vysheng/tg/issues/918/labels{/name}","comments_url":"https://api.github.com/repos/vysheng/tg/issues/918/comments","events_url":"https://api.github.com/repos/vysheng/tg/issues/918/events","html_url":"https://github.com/vysheng/tg/issues/918","id":125453506,"number":918,"title":"how to send secret chat message from command line","user":{"login":"j-ed","id":2572764,"avatar_url":"https://avatars.githubusercontent.com/u/2572764?v=3","gravatar_id":"","url":"https://api.github.com/users/j-ed","html_url":"https://github.com/j-ed","followers_url":"https://api.github.com/users/j-ed/followers","following_url":"https://api.github.com/users/j-ed/following{/other_user}","gists_url":"https://api.github.com/users/j-ed/gists{/gist_id}","starred_url":"https://api.github.com/users/j-ed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j-ed/subscriptions","organizations_url":"https://api.github.com/users/j-ed/orgs","repos_url":"https://api.github.com/users/j-ed/repos","events_url":"https://api.github.com/users/j-ed/events{/privacy}","received_events_url":"https://api.github.com/users/j-ed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-07T18:08:55Z","updated_at":"2016-01-08T17:59:27Z","closed_at":null,"body":"I've compiled the telegram-cli binary, based on todays source code. If I try to send a secure chat message from the command line, it usually fails and an error message is displayed. (Using telegram-cli in interactive mode works like a charme)\r\n```\r\ntelegram-cli -W -e 'msg !_user Hello world'\r\nFAIL: 38: can not parse arg #1\r\n``` \r\n\r\nBased on what I've found on the Internet, in the documentation or on GitHub, I've tried to send a message using several different ways, but without success:\r\n\r\n```\r\n1. telegram-cli -W -e 'msg !_TOM Hello world'\r\n   -> this doesn't work.\r\n\r\n2. telegram-cli -W -e \"create_secret_chat\\nmsg !_TOM Hello world\"\r\n   -> also \\n is most likely interpreted correctly, this doesn't work because '!'\r\n      is not mask (-bash: !_user: event not found)\r\n\r\n3. telegram-cli -W -e \"create_secret_chat\\nmsg \\!_TOM Hello world\"\r\n   -> also \\n is most likely interpreted correctly and ! is also mask correctly\r\n      this doesn't work because \\!_user couldn't most likely be found.\r\n\r\n4. telegram-cli -W -e 'create_secret_chat\\nmsg !_TOM Hello world'\r\n   -> this doesn't work because '\\n' is most likely not recognized as new-line.\r\n\r\n5. telegram-cli -W -e \"create_secret_chat\\nmsg !_user@id Hello world\"\r\n   -> this doesn't work either, because the  '!' is not mask correctly\r\n      (-bash: !_user: event not found)\r\n```\r\nI've also tried to separate the two commands using a semi-colon or using '-e' multiple times, but without success. So if someone could shed some light on how the command need to be called, I would appreciate it.\r\n"},"comment":{"url":"https://api.github.com/repos/vysheng/tg/issues/comments/170074947","html_url":"https://github.com/vysheng/tg/issues/918#issuecomment-170074947","issue_url":"https://api.github.com/repos/vysheng/tg/issues/918","id":170074947,"user":{"login":"beMoD","id":13865893,"avatar_url":"https://avatars.githubusercontent.com/u/13865893?v=3","gravatar_id":"","url":"https://api.github.com/users/beMoD","html_url":"https://github.com/beMoD","followers_url":"https://api.github.com/users/beMoD/followers","following_url":"https://api.github.com/users/beMoD/following{/other_user}","gists_url":"https://api.github.com/users/beMoD/gists{/gist_id}","starred_url":"https://api.github.com/users/beMoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beMoD/subscriptions","organizations_url":"https://api.github.com/users/beMoD/orgs","repos_url":"https://api.github.com/users/beMoD/repos","events_url":"https://api.github.com/users/beMoD/events{/privacy}","received_events_url":"https://api.github.com/users/beMoD/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T17:59:27Z","updated_at":"2016-01-08T17:59:27Z","body":"I currently am not able to test, but perhaps `dialog_list`?"}}