Skip to content
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

lottieStickerMessage #803

Closed
zetsubococaebom opened this issue May 18, 2024 · 7 comments
Closed

lottieStickerMessage #803

zetsubococaebom opened this issue May 18, 2024 · 7 comments

Comments

@zetsubococaebom
Copy link

How does the lottieStickerMessage message look and structure? Apart from that, how do I send the message?

@vanSnowi
Copy link

I this it can be send like this
snowi.relayMessage(from, {
lottieStickerMessage: {
message: {
stickerMessage: {
here a random sticker message code with isLottie: true
}
}
}
})

@zetsubococaebom
Copy link
Author

zetsubococaebom commented May 19, 2024

I this it can be send like this
snowi.relayMessage(from, {
lottieStickerMessage: {
message: {
stickerMessage: {
here a random sticker message code with isLottie: true
}
}
}
})

did you succeed in sending it?. I've tried it, but it doesn't work.

i use this code >

mypenis.relayMessage(m.chat, {
lottieStickerMessage: {
message: {
stickerMessage: {
url: "https://mmg.whatsapp.net/v/t62.15575-24/69657577_1153035275978487_2957537414783630520_n.enc?ccb=11-4&oh=01_Q5AaIB0iKF74r_1Q5zxc0to5RA0ytOT36lfF-0BZ6vDCV-WN&oe=66718365&_nc_sid=5e03e0&mms3=true",
fileSha256: "O8o7dVH90uxRfV4CXbsBWs9hWOq8X9oqsWITwPYe3d8=",
fileEncSha256: "a4uXLS+dnKKNBi2ZhoDBNSRX3rSrqsyOI+yC2N8GwOs=",
mediaKey: "+xaBZiHPRNU+oVJ1z2vhrlv6dyvJAveWBNFfNQ8fBco=",
mimetype: "image/webp",
height: "64",
width: "64",
directPath: "/v/t62.15575-24/69657577_1153035275978487_2957537414783630520_n.enc?ccb=11-4&oh=01_Q5AaIB0iKF74r_1Q5zxc0to5RA0ytOT36lfF-0BZ6vDCV-WN&oe=66718365&_nc_sid=5e03e0",
fileLength: "345740",
mediaKeyTimestamp: "1716088583",
firstFrameLength: "8570",
firstFrameSidecar: "FJIvHupaXJCthA==",
isAnimated: "true",
stickerSentTs: "1716123599201",
isAvatar: "false",
isAiSticker: "false",
isLottie: "true"
}
}
}
}, {});

@vanSnowi
Copy link

vanSnowi commented May 19, 2024 via email

@zetsubococaebom
Copy link
Author

Have you tested it with sendMessage?

zetsubococaebom @.***> schrieb am So., 19. Mai 2024,
15:14:

I this it can be send like this
snowi.relayMessage(from, {
lottieStickerMessage: {
message: {
stickerMessage: {
here a random sticker message code with isLottie: true
}
}
}
})

I've tried it, but it doesn't work.

i use this code >

mypenis.relayMessage(m.chat, {
lottieStickerMessage: {
message: {
stickerMessage: {
url: "
https://mmg.whatsapp.net/v/t62.15575-24/69657577_1153035275978487_2957537414783630520_n.enc?ccb=11-4&oh=01_Q5AaIB0iKF74r_1Q5zxc0to5RA0ytOT36lfF-0BZ6vDCV-WN&oe=66718365&_nc_sid=5e03e0&mms3=true
",
fileSha256: "O8o7dVH90uxRfV4CXbsBWs9hWOq8X9oqsWITwPYe3d8=",
fileEncSha256: "a4uXLS+dnKKNBi2ZhoDBNSRX3rSrqsyOI+yC2N8GwOs=",
mediaKey: "+xaBZiHPRNU+oVJ1z2vhrlv6dyvJAveWBNFfNQ8fBco=",
mimetype: "image/webp",
height: "64",
width: "64",
directPath:
"/v/t62.15575-24/69657577_1153035275978487_2957537414783630520_n.enc?ccb=11-4&oh=01_Q5AaIB0iKF74r_1Q5zxc0to5RA0ytOT36lfF-0BZ6vDCV-WN&oe=66718365&_nc_sid=5e03e0",
fileLength: "345740",
mediaKeyTimestamp: "1716088583",
firstFrameLength: "8570",
firstFrameSidecar: "FJIvHupaXJCthA==",
isAnimated: "true",
stickerSentTs: "1716123599201",
isAvatar: "false",
isAiSticker: "false",
isLottie: "true"
}
}
}
}, {});


Reply to this email directly, view it on GitHub
#803 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BH2LEZN3WOJFIP5H5GZIC7LZDCQRVAVCNFSM6AAAAABH5G7E2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZGIZTINJQGI
.
You are receiving this because you commented.Message ID:
@.***>

it causes Error: Invalid media type

@vanSnowi
Copy link

vanSnowi commented May 19, 2024 via email

@zetsubococaebom
Copy link
Author

Hmmm okay i will try to find a way but i cant promise that there is one

zetsubococaebom @.***> schrieb am So., 19. Mai 2024,
16:12:

Have you tested it with sendMessage?

zetsubococaebom @.***> schrieb am So., 19. Mai 2024,
15:14:

I this it can be send like this
snowi.relayMessage(from, {
lottieStickerMessage: {
message: {
stickerMessage: {
here a random sticker message code with isLottie: true
}
}
}
})

I've tried it, but it doesn't work.

i use this code >

mypenis.relayMessage(m.chat, {
lottieStickerMessage: {
message: {
stickerMessage: {
url: "

https://mmg.whatsapp.net/v/t62.15575-24/69657577_1153035275978487_2957537414783630520_n.enc?ccb=11-4&oh=01_Q5AaIB0iKF74r_1Q5zxc0to5RA0ytOT36lfF-0BZ6vDCV-WN&oe=66718365&_nc_sid=5e03e0&mms3=true
",
fileSha256: "O8o7dVH90uxRfV4CXbsBWs9hWOq8X9oqsWITwPYe3d8=",
fileEncSha256: "a4uXLS+dnKKNBi2ZhoDBNSRX3rSrqsyOI+yC2N8GwOs=",
mediaKey: "+xaBZiHPRNU+oVJ1z2vhrlv6dyvJAveWBNFfNQ8fBco=",
mimetype: "image/webp",
height: "64",
width: "64",
directPath:

"/v/t62.15575-24/69657577_1153035275978487_2957537414783630520_n.enc?ccb=11-4&oh=01_Q5AaIB0iKF74r_1Q5zxc0to5RA0ytOT36lfF-0BZ6vDCV-WN&oe=66718365&_nc_sid=5e03e0",
fileLength: "345740",
mediaKeyTimestamp: "1716088583",
firstFrameLength: "8570",
firstFrameSidecar: "FJIvHupaXJCthA==",
isAnimated: "true",
stickerSentTs: "1716123599201",
isAvatar: "false",
isAiSticker: "false",
isLottie: "true"
}
}
}
}, {});


Reply to this email directly, view it on GitHub
#803 (comment)
#803 (comment)
,
or unsubscribe

https://github.com/notifications/unsubscribe-auth/BH2LEZN3WOJFIP5H5GZIC7LZDCQRVAVCNFSM6AAAAABH5G7E2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZGIZTINJQGI
.
You are receiving this because you commented.Message ID:
@.***>

it causes Error: Invalid media type


Reply to this email directly, view it on GitHub
#803 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BH2LEZMKBQFB56PBZ2WU3T3ZDCXONAVCNFSM6AAAAABH5G7E2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZGI2TENRZG4
.
You are receiving this because you commented.Message ID:
@.***>

okay, have a nice day bro🚬🗿

@AKAZAMD
Copy link

AKAZAMD commented May 22, 2024

I feel a little sorry for you,
A common example is if you experience an invalid media type

import { downloadMediaMessage } from "baileys"
import pino from "pino"
Elaina.download = async (message) => {
        let buffer = await downloadMediaMessage(
            message,
            'buffer', {}, {
            logger: pino({ level: 'silent' }),
            reuploadRequest: Elaina.updateMediaMessage
        }
        )
       
        return buffer
    }
  let buffer = Elaina.download(m.quoted) //Is your bot like this to get the image/video message of the person you are replying to?, just match it with your bot
  Elaina.sendMessage(Jid, { sticker: buffer}, { quoted: m })```

@SheIITear SheIITear closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants