groupStatusMessage #2318
Unanswered
Koji-el-senshi
asked this question in
General Questions
Replies: 1 comment
|
Thank you for sharing, I'll check this later :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
how can i attempt groupStatusMessage ? like another baileys is this baileys is support for groupStatusMessage ?
Group Status (Story) Sending
gifted-baileys supports sending status/story messages directly to groups. This feature allows you to share status updates with specific groups.
About Group Status
Group status messages appear as status updates within the group chat. This is different from broadcasting to all contacts.
Send Image Status to Group
await sock.sendMessage('120363419778858313@g.us', {
groupStatusMessage: {
image: { url: 'https://example.com/image.jpg' },
caption: 'Check out my status!'
}
})
Send Video Status to Group
await sock.sendMessage('120363419778858313@g.us', {
groupStatusMessage: {
video: { url: 'https://example.com/video.mp4' },
caption: 'My video status!'
}
})
Send Text Status to Group
await sock.sendMessage('120363419778858313@g.us', {
groupStatusMessage: {
text: 'Hello from my status!',
backgroundColor: '#FF5733',
font: 1
}
})
Send Audio Status to Group
await sock.sendMessage('120363419778858313@g.us', {
groupStatusMessage: {
audio: { url: 'https://example.com/audio.mp3' },
mimetype: 'audio/mp4',
ptt: true
}
})
Alternative Helper Method
You can also use the built-in helper method:
await sock.giftedStatus.sendGroupStatus('120363419778858313@g.us', {
image: { url: 'https://example.com/image.jpg' },
caption: 'My group status!'
})
All reactions