You can use tenorjs to fetch the GIFs. If you only want to use one certain GIF, you download that, and add that to your Files.
You can use something like text-on-gif to display text on the GIF.
Basic Usage of text-on-gif
:
const textOnGif = require("text-on-gif");
(async function(){
//get gif as buffer
var gifBuffer = await textOnGif({
file_path:"/path/file.gif", //path to local file or url
textMessage:"custom message"
});
console.log(gifBuffer)
//write gif as file
await textOnGif({
file_path:"/path/file.gif", //path to local file or url
textMessage:"custom message",
write_as_file:true,
getAsBuffer:false,
write_path:"path/gif-with-text.gif"
});
})();