{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1832","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1832/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1832/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1832/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/1832","id":194444609,"number":1832,"title":"Completely failing to process ConversationUpdate for Telegram bot","user":{"login":"ncksol","id":1391947,"avatar_url":"https://avatars.githubusercontent.com/u/1391947?v=3","gravatar_id":"","url":"https://api.github.com/users/ncksol","html_url":"https://github.com/ncksol","followers_url":"https://api.github.com/users/ncksol/followers","following_url":"https://api.github.com/users/ncksol/following{/other_user}","gists_url":"https://api.github.com/users/ncksol/gists{/gist_id}","starred_url":"https://api.github.com/users/ncksol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncksol/subscriptions","organizations_url":"https://api.github.com/users/ncksol/orgs","repos_url":"https://api.github.com/users/ncksol/repos","events_url":"https://api.github.com/users/ncksol/events{/privacy}","received_events_url":"https://api.github.com/users/ncksol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"eanders-MS","id":12176807,"avatar_url":"https://avatars.githubusercontent.com/u/12176807?v=3","gravatar_id":"","url":"https://api.github.com/users/eanders-MS","html_url":"https://github.com/eanders-MS","followers_url":"https://api.github.com/users/eanders-MS/followers","following_url":"https://api.github.com/users/eanders-MS/following{/other_user}","gists_url":"https://api.github.com/users/eanders-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/eanders-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eanders-MS/subscriptions","organizations_url":"https://api.github.com/users/eanders-MS/orgs","repos_url":"https://api.github.com/users/eanders-MS/repos","events_url":"https://api.github.com/users/eanders-MS/events{/privacy}","received_events_url":"https://api.github.com/users/eanders-MS/received_events","type":"User","site_admin":false},"assignees":[{"login":"eanders-MS","id":12176807,"avatar_url":"https://avatars.githubusercontent.com/u/12176807?v=3","gravatar_id":"","url":"https://api.github.com/users/eanders-MS","html_url":"https://github.com/eanders-MS","followers_url":"https://api.github.com/users/eanders-MS/followers","following_url":"https://api.github.com/users/eanders-MS/following{/other_user}","gists_url":"https://api.github.com/users/eanders-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/eanders-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eanders-MS/subscriptions","organizations_url":"https://api.github.com/users/eanders-MS/orgs","repos_url":"https://api.github.com/users/eanders-MS/repos","events_url":"https://api.github.com/users/eanders-MS/events{/privacy}","received_events_url":"https://api.github.com/users/eanders-MS/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-12-08T21:06:49Z","updated_at":"2016-12-09T20:07:32Z","closed_at":null,"body":"So I am writing this very simple test bot that will say \"hello\" and \"bye\" when people join/leave group. I've just created a new project from bot template and substituted handling of Message activity with ConversationUpdate activity:\r\n```\r\n        public async Task<HttpResponseMessage> Post([FromBody]Activity activity)\r\n        {\r\n            if (activity.Type == ActivityTypes.ConversationUpdate)\r\n            {\r\n                ConnectorClient connector = new ConnectorClient(new Uri(\"https://telegram.botframework.com\"));\r\n\r\n                var replyMessage = String.Empty;\r\n                if (activity.MembersAdded != null && activity.MembersAdded.Any())\r\n                    replyMessage = \"Hello!\";\r\n                else if (activity.MembersRemoved != null && activity.MembersRemoved.Any())\r\n                    replyMessage = \"Bye!\";\r\n\r\n                // return our reply to the user\r\n                Activity reply = activity.CreateReply(replyMessage);\r\n                await connector.Conversations.ReplyToActivityAsync(reply);\r\n            }\r\n            else\r\n            {\r\n                HandleSystemMessage(activity);\r\n            }\r\n            var response = Request.CreateResponse(HttpStatusCode.OK);\r\n            return response;\r\n        }\r\n```\r\n\r\nMy first problem was that ConversationUpdate doesn't have ServiceUrl set, so I had to copy it from Message activity and hardcode. But even after that it wouldn't work. It gets the ConversationUpdate activity update, it finds the joined/left members, create reply and sends it without any exception. But there is no activity from the bot in the channel.\r\n\r\nThis works fine if I publish my bot as it is with the code from template. It handles messages and replies how many characters the user has typed. But there are no replies when people join/leave."},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/266110380","html_url":"https://github.com/Microsoft/BotBuilder/issues/1832#issuecomment-266110380","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/1832","id":266110380,"user":{"login":"ncksol","id":1391947,"avatar_url":"https://avatars.githubusercontent.com/u/1391947?v=3","gravatar_id":"","url":"https://api.github.com/users/ncksol","html_url":"https://github.com/ncksol","followers_url":"https://api.github.com/users/ncksol/followers","following_url":"https://api.github.com/users/ncksol/following{/other_user}","gists_url":"https://api.github.com/users/ncksol/gists{/gist_id}","starred_url":"https://api.github.com/users/ncksol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncksol/subscriptions","organizations_url":"https://api.github.com/users/ncksol/orgs","repos_url":"https://api.github.com/users/ncksol/repos","events_url":"https://api.github.com/users/ncksol/events{/privacy}","received_events_url":"https://api.github.com/users/ncksol/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T20:07:32Z","updated_at":"2016-12-09T20:07:32Z","body":"Also this is all happening on v3.3.0. I've tried to update to v3.3.3 but in that version if I try to hardcode telegram connector URI, I get an error that that URL is not secure and it stops working altogether."}}
{"actor":{"display_login":"ncksol"}}