This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mejorFoto = msg.photo[msg.photo.length - 1]; // al momento de escribir esto, la foto con mejor calidad estaba en la última posición | |
const nombreFotoDescargada = await bot.downloadFile(mejorFoto.file_id, "./"); | |
const fotoConGloboDeTexto = await agregarGloboDeTextoYDevolverBuffer(nombreFotoDescargada, 15); | |
fs.unlink(nombreFotoDescargada, () => { | |
bot.sendPhoto(chatId, fotoConGloboDeTexto); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment