how to convert jpg to webp in C#
问题 I'm writing a telegram bot that takes jpg from it's users and sends it back as stickers. I did this correctly by downloading jpg, change the extension of file to png and upload and send it back as a sticker message to the user. as shown below: var file = await bot.GetFileAsync(update.Message.Photo.LastOrDefault()?.FileId); var filename = file.FileId + "." + file.FilePath.Split('.').Last(); var pngFileName = filename.Split('.')[0] + ".png"; using (var saveImageStream = System.IO.File.Open