Webp provides a better compression for animated pictures (yes it supports animated pictures) but, recently, @adbenitez showed me a Telegram feature that convert gif files to mp4 files and provides a better compression than webp.
I tried to get something better for such files using webm and webp instead without lucky. So I would recommend using mp4 with H264.