{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/576","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/576/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/576/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/576","id":163336828,"number":576,"title":"Send message to user| Permanently identify user","user":{"login":"NanashiGIT","id":12831334,"avatar_url":"https://avatars.githubusercontent.com/u/12831334?v=3","gravatar_id":"","url":"https://api.github.com/users/NanashiGIT","html_url":"https://github.com/NanashiGIT","followers_url":"https://api.github.com/users/NanashiGIT/followers","following_url":"https://api.github.com/users/NanashiGIT/following{/other_user}","gists_url":"https://api.github.com/users/NanashiGIT/gists{/gist_id}","starred_url":"https://api.github.com/users/NanashiGIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NanashiGIT/subscriptions","organizations_url":"https://api.github.com/users/NanashiGIT/orgs","repos_url":"https://api.github.com/users/NanashiGIT/repos","events_url":"https://api.github.com/users/NanashiGIT/events{/privacy}","received_events_url":"https://api.github.com/users/NanashiGIT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tomlm","id":17789481,"avatar_url":"https://avatars.githubusercontent.com/u/17789481?v=3","gravatar_id":"","url":"https://api.github.com/users/tomlm","html_url":"https://github.com/tomlm","followers_url":"https://api.github.com/users/tomlm/followers","following_url":"https://api.github.com/users/tomlm/following{/other_user}","gists_url":"https://api.github.com/users/tomlm/gists{/gist_id}","starred_url":"https://api.github.com/users/tomlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomlm/subscriptions","organizations_url":"https://api.github.com/users/tomlm/orgs","repos_url":"https://api.github.com/users/tomlm/repos","events_url":"https://api.github.com/users/tomlm/events{/privacy}","received_events_url":"https://api.github.com/users/tomlm/received_events","type":"User","site_admin":false},"assignees":[{"login":"tomlm","id":17789481,"avatar_url":"https://avatars.githubusercontent.com/u/17789481?v=3","gravatar_id":"","url":"https://api.github.com/users/tomlm","html_url":"https://github.com/tomlm","followers_url":"https://api.github.com/users/tomlm/followers","following_url":"https://api.github.com/users/tomlm/following{/other_user}","gists_url":"https://api.github.com/users/tomlm/gists{/gist_id}","starred_url":"https://api.github.com/users/tomlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomlm/subscriptions","organizations_url":"https://api.github.com/users/tomlm/orgs","repos_url":"https://api.github.com/users/tomlm/repos","events_url":"https://api.github.com/users/tomlm/events{/privacy}","received_events_url":"https://api.github.com/users/tomlm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-07-01T07:35:30Z","updated_at":"2016-07-06T22:09:11Z","closed_at":null,"body":"**UPDATE:**\r\nSo i've been trying different things out and it appears, that i had to fill the From-Property in the message.\r\nThe solution is like this:\r\n```cs\r\nvar conClient = new ConnectorClient();\r\nMessage message2 = new Message();\r\nmessage2.From = new ChannelAccount { ChannelId = message.From.ChannelId, Address = botAddress};\r\nmessage2.To = new ChannelAccount { ChannelId = message.From.ChannelId, Address = userAddress};\r\nmessage2.Text = \"Hello other user!\";\r\nmessage2.Language = \"en\";\r\nawait conClient.Messages.SendMessageAsync(message2);\r\n```\r\n\r\nNow i'd like to use this thread here to discuss another question, that i had for quite some time:\r\nIf i want to --permanently-- identify a user/bot, what should i use?\r\nI am guessing that a combination of \"ChannelID\" and \"Address\" is an unique identifier of a user for a channel.\r\nBut what about the \"id\" ? I dont really understand the reason for that ID. What value does it have for me? Because it seems like the id is also a unique identifier for a user for just one channel.\r\nWhat reasons are there to store the \"id\"?\r\nIs it possible, to get all ChannelID-Address combinations of a user with the id? (if the id is globally unique)\r\n\r\nGreetings!\r\n\r\n\r\n--------------------------------------------**Initial Question**------------------------------------------------------------\r\n\r\n\r\nHello!\r\nWhat i want to do is to message a user with my bot, only knowing the channelID/UserID/UserAddress.\r\nBecause i need to handle a message from my backend, which tells me something like \"message that user\", so i have no conversation info or anything.\r\n\r\nSo is it possible to just message a user?\r\nIf so, how does it work?\r\nIm using the C# Builder.\r\nIm currently testing it with skype.\r\n\r\nWhat ive tried:\r\n```cs\r\nvar conClient = new ConnectorClient();\r\nvar msg = new Message() { To = new ChannelAccount { Id = \"hisID\", ChannelId = \"skype\", Address = \"his address\", IsBot = false }, Text = $\"Hello!\" };\r\nawait conClient.Messages.SendMessageAsync(msg);\r\n            \r\n```\r\nThat doesnt work for some reason.\r\nAm i missing a required message property? Thats what im thinking.\r\n\r\nGreetings!\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/230922305","html_url":"https://github.com/Microsoft/BotBuilder/issues/576#issuecomment-230922305","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/576","id":230922305,"user":{"login":"jameslew","id":5997512,"avatar_url":"https://avatars.githubusercontent.com/u/5997512?v=3","gravatar_id":"","url":"https://api.github.com/users/jameslew","html_url":"https://github.com/jameslew","followers_url":"https://api.github.com/users/jameslew/followers","following_url":"https://api.github.com/users/jameslew/following{/other_user}","gists_url":"https://api.github.com/users/jameslew/gists{/gist_id}","starred_url":"https://api.github.com/users/jameslew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameslew/subscriptions","organizations_url":"https://api.github.com/users/jameslew/orgs","repos_url":"https://api.github.com/users/jameslew/repos","events_url":"https://api.github.com/users/jameslew/events{/privacy}","received_events_url":"https://api.github.com/users/jameslew/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T22:09:11Z","updated_at":"2016-07-06T22:09:11Z","body":"Hi there NanashiGit,\r\n\r\nThe ID currently represents the Bot Framework ID for this user. In upcoming releases we'll be simplifying the ChannelAccount data to just the channel service's user Id and Name; with ChannelId being at the message level."}}
{"actor":{"display_login":"jameslew"}}