{"action":"created","issue":{"url":"https://api.github.com/repos/NECROBOTIO/NecroBot/issues/5151","repository_url":"https://api.github.com/repos/NECROBOTIO/NecroBot","labels_url":"https://api.github.com/repos/NECROBOTIO/NecroBot/issues/5151/labels{/name}","comments_url":"https://api.github.com/repos/NECROBOTIO/NecroBot/issues/5151/comments","events_url":"https://api.github.com/repos/NECROBOTIO/NecroBot/issues/5151/events","html_url":"https://github.com/NECROBOTIO/NecroBot/issues/5151","id":170697786,"number":5151,"title":"Telegram error","user":{"login":"kuity","id":3043153,"avatar_url":"https://avatars.githubusercontent.com/u/3043153?v=3","gravatar_id":"","url":"https://api.github.com/users/kuity","html_url":"https://github.com/kuity","followers_url":"https://api.github.com/users/kuity/followers","following_url":"https://api.github.com/users/kuity/following{/other_user}","gists_url":"https://api.github.com/users/kuity/gists{/gist_id}","starred_url":"https://api.github.com/users/kuity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuity/subscriptions","organizations_url":"https://api.github.com/users/kuity/orgs","repos_url":"https://api.github.com/users/kuity/repos","events_url":"https://api.github.com/users/kuity/events{/privacy}","received_events_url":"https://api.github.com/users/kuity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-11T17:14:08Z","updated_at":"2016-08-11T17:21:08Z","closed_at":null,"body":"### Expected Behavior\r\nTelegram commands should work with my bot. e.g. /top\r\n\r\n### Actual Behavior\r\nNothing is working.\r\nThe log is showing this error:\r\n```Unkown Telegram Error occured.```\r\n\r\n### Your config.json\r\nThese are the only lines I changed:\r\n```\r\n\"UseTelegramAPI\": true,\r\n\"TelegramAPIKey\": \"<my_api_key>\",\r\n```\r\n\r\n### Steps to Reproduce\r\nJust run NecroBot after updating the above two lines in the config.,\r\n\r\n### Other Information\r\n\r\nI have tried debugging and an exception is occurring on line 38 in TelegramService.cs:\r\n```var me = _bot.GetMeAsync().Result;```\r\n\r\nFollowing is what I get after printing the Exception.Message and Exception.InnerException:\r\n```\r\n[01:03:40] Unkown Telegram Error occured. One or more errors occurred.System.Security.VerificationException: Method System.Net.Http.CloneableExtensions.Clone: type argument 'System.Net.Http.Headers.MediaTypeHeaderValue' violates the constraint of type parameter 'T'.\r\n   at System.Net.Http.Formatting.MediaTypeConstants.get_ApplicationJsonMediaType()\r\n   at System.Net.Http.Formatting.JsonMediaTypeFormatter..ctor()\r\n   at System.Net.Http.Formatting.MediaTypeFormatterCollection.CreateDefaultFormatters()\r\n   at System.Net.Http.HttpContentExtensions.get_DefaultMediaTypeFormatterCollection()\r\n   at System.Net.Http.HttpContentExtensions.ReadAsAsync[T](HttpContent content, CancellationToken cancellationToken)\r\n   at Telegram.Bot.TelegramBotClient.<SendWebRequestAsync>d__139`1.MoveNext()\r\n```"},"comment":{"url":"https://api.github.com/repos/NECROBOTIO/NecroBot/issues/comments/239229233","html_url":"https://github.com/NECROBOTIO/NecroBot/issues/5151#issuecomment-239229233","issue_url":"https://api.github.com/repos/NECROBOTIO/NecroBot/issues/5151","id":239229233,"user":{"login":"ChemiHatake","id":20744736,"avatar_url":"https://avatars.githubusercontent.com/u/20744736?v=3","gravatar_id":"","url":"https://api.github.com/users/ChemiHatake","html_url":"https://github.com/ChemiHatake","followers_url":"https://api.github.com/users/ChemiHatake/followers","following_url":"https://api.github.com/users/ChemiHatake/following{/other_user}","gists_url":"https://api.github.com/users/ChemiHatake/gists{/gist_id}","starred_url":"https://api.github.com/users/ChemiHatake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChemiHatake/subscriptions","organizations_url":"https://api.github.com/users/ChemiHatake/orgs","repos_url":"https://api.github.com/users/ChemiHatake/repos","events_url":"https://api.github.com/users/ChemiHatake/events{/privacy}","received_events_url":"https://api.github.com/users/ChemiHatake/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T17:21:08Z","updated_at":"2016-08-11T17:21:08Z","body":"#4947"}}
{"actor":{"display_login":"ChemiHatake"}}