Skip to content

Commit f7debb3

Browse files
committed
fix: update image buffer encoding to base64 in HandleWelcome function
1 parent ec43795 commit f7debb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/admin/wellcome.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export const HandleWelcome = async (sock, update) => {
130130
console.log(username, groupName, ppUrl);
131131

132132
const response = await axios.get(apiUrl, { responseType: "arraybuffer" });
133-
const imageBuffer = Buffer.from(response.data, "binary");
133+
const imageBuffer = Buffer.from(response.data, "base64");
134134

135135
// 5. Format Caption
136136
const rawText = data?.message || "@user Selamat datang di @group";

0 commit comments

Comments
 (0)