{"action":"created","issue":{"url":"https://api.github.com/repos/zackpollard/JavaTelegramBot-API/issues/29","repository_url":"https://api.github.com/repos/zackpollard/JavaTelegramBot-API","labels_url":"https://api.github.com/repos/zackpollard/JavaTelegramBot-API/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/zackpollard/JavaTelegramBot-API/issues/29/comments","events_url":"https://api.github.com/repos/zackpollard/JavaTelegramBot-API/issues/29/events","html_url":"https://github.com/zackpollard/JavaTelegramBot-API/issues/29","id":148505282,"number":29,"title":"ClassCastException when sending VideoContent","user":{"login":"bo0tzz","id":11602424,"avatar_url":"https://avatars.githubusercontent.com/u/11602424?v=3","gravatar_id":"","url":"https://api.github.com/users/bo0tzz","html_url":"https://github.com/bo0tzz","followers_url":"https://api.github.com/users/bo0tzz/followers","following_url":"https://api.github.com/users/bo0tzz/following{/other_user}","gists_url":"https://api.github.com/users/bo0tzz/gists{/gist_id}","starred_url":"https://api.github.com/users/bo0tzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bo0tzz/subscriptions","organizations_url":"https://api.github.com/users/bo0tzz/orgs","repos_url":"https://api.github.com/users/bo0tzz/repos","events_url":"https://api.github.com/users/bo0tzz/events{/privacy}","received_events_url":"https://api.github.com/users/bo0tzz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zackpollard/JavaTelegramBot-API/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"zackpollard","id":1313578,"avatar_url":"https://avatars.githubusercontent.com/u/1313578?v=3","gravatar_id":"","url":"https://api.github.com/users/zackpollard","html_url":"https://github.com/zackpollard","followers_url":"https://api.github.com/users/zackpollard/followers","following_url":"https://api.github.com/users/zackpollard/following{/other_user}","gists_url":"https://api.github.com/users/zackpollard/gists{/gist_id}","starred_url":"https://api.github.com/users/zackpollard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zackpollard/subscriptions","organizations_url":"https://api.github.com/users/zackpollard/orgs","repos_url":"https://api.github.com/users/zackpollard/repos","events_url":"https://api.github.com/users/zackpollard/events{/privacy}","received_events_url":"https://api.github.com/users/zackpollard/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-14T22:52:11Z","updated_at":"2016-04-14T23:12:11Z","closed_at":null,"body":"The API throws an exception anytime I send a GIF to a chat, it seems to be an internal issue.\r\n\r\n`An error occurred during an event, check the stacktrace below for a more detailed error.\r\njava.lang.ClassCastException: pro.zackpollard.telegrambot.api.internal.chat.message.content.DocumentContentImpl cannot be cast to pro.zackpollard.telegrambot.api.chat.message.content.VideoContent\r\n        at pro.zackpollard.telegrambot.api.TelegramBot.sendMessage(TelegramBot.java:398)\r\n        at pro.zackpollard.telegrambot.api.internal.chat.SuperGroupChatImpl.sendMessage(SuperGroupChatImpl.java:58)\r\n        at me.bo0tzz.rnmbot.RnMListener.getGIF(RnMListener.java:106)\r\n        at me.bo0tzz.rnmbot.RnMListener.onCommandMessageReceived(RnMListener.java:77)\r\n        at pro.zackpollard.telegrambot.api.internal.event.ListenerRegistryImpl.lambda$callEvent$3(ListenerRegistryImpl.java:64)\r\n        at java.lang.Iterable.forEach(Iterable.java:75)\r\n        at pro.zackpollard.telegrambot.api.internal.event.ListenerRegistryImpl.callEvent(ListenerRegistryImpl.java:64)\r\n        at pro.zackpollard.telegrambot.api.internal.updates.RequestUpdatesManager$UpdaterRunnable.run(RequestUpdatesManager.java:161)\r\n        at java.lang.Thread.run(Thread.java:745)\r\n`\r\n\r\nRelevant code is at https://github.com/bo0tzz/RickAndMortyBot/blob/master/src/main/java/me/bo0tzz/rnmbot/RnMListener.java#L106"},"comment":{"url":"https://api.github.com/repos/zackpollard/JavaTelegramBot-API/issues/comments/210198903","html_url":"https://github.com/zackpollard/JavaTelegramBot-API/issues/29#issuecomment-210198903","issue_url":"https://api.github.com/repos/zackpollard/JavaTelegramBot-API/issues/29","id":210198903,"user":{"login":"bo0tzz","id":11602424,"avatar_url":"https://avatars.githubusercontent.com/u/11602424?v=3","gravatar_id":"","url":"https://api.github.com/users/bo0tzz","html_url":"https://github.com/bo0tzz","followers_url":"https://api.github.com/users/bo0tzz/followers","following_url":"https://api.github.com/users/bo0tzz/following{/other_user}","gists_url":"https://api.github.com/users/bo0tzz/gists{/gist_id}","starred_url":"https://api.github.com/users/bo0tzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bo0tzz/subscriptions","organizations_url":"https://api.github.com/users/bo0tzz/orgs","repos_url":"https://api.github.com/users/bo0tzz/repos","events_url":"https://api.github.com/users/bo0tzz/events{/privacy}","received_events_url":"https://api.github.com/users/bo0tzz/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T23:12:11Z","updated_at":"2016-04-14T23:12:11Z","body":"After changing from using SendableVideoMessage to SendableDocumentMessage the issue is fixed on my side. I will still leave this issue open so you can add checks to the API."}}