-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Profile Picture #1067
Comments
@PurpShell @SheIITear any idea ? |
I have a solution to use the feature from sock.updateProfilePicture(jid, { url: './new-profile-picture.jpeg' }) , maybe in the current baileys version it doesn't work due to an error with the system code "408 error timeout" You can use it with your eval bot for the case version, please tinker with it yourself. I'm just sharing, here is an example of the code I use: const { S_WHATSAPP_NET } = require("@whiskeysockets/baileys"); const buffer = await mastahyabang.downloadAndSaveMediaMessage(quoted) Note: This code works on the previous and latest versions of Baileys, please try the code if it works for you. I have tested it myself and the results work well without errors, thank you!! |
Code of generateProfilePicture ? And here to: S_WHATSAPP_NET, it's need a jid I'd but there's is s_whatsapp_net it's work only for our profile picture but not for group // target: '0', is commented so by default bot can't run it |
|
if you use it to change the group profile then target: group jid is what you want to change, whereas if you want to use it for the bot number itself, delete target: |
Error: No image processing library available |
npm i sharp |
await sock.updateProfilePicture(jid, { url: './new-profile-picture.jpeg' })
Not working
The text was updated successfully, but these errors were encountered: