This feature was requested for the matrix client on desktop. A workaround mentioned was the macos gif keyboard. There have been multiple implementations by users, mine included, but all of them where rejected because of privacy concerns and that the core team hasn’t decided how they wanted it to be designed.