You can’t post an image/gif in Twitch or Youtube’s chat, only the link.
If you are talking about in Discord, posting the link will embed the image in chat so it can be seen without having to click the link, provided Nightbot’s rank permissions allows it to do so.