WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
3.1k stars 1.07k forks source link

Send Broacast List and Status not working #619

Open jeferssonlemes opened 5 months ago

jeferssonlemes commented 5 months ago

Describe the bug I'm trying to simulate broadcast submissions as documented but without success

To Reproduce

-- trying to update status:

await waSocketService.sock.sendMessage(
    'status@broadcast', 
    { text: 'This is a test' }, {
    backgroundColor: '#315575',
    font: 3,
    statusJidList: ['123@s.whatsapp.net'],
    broadcast: true });

-- trying to send to broadcast list(it was created on the device):

await waSocketService.sock.sendMessage('{timestamp}@broadcast',
                { text: 'hello world' }, { broadcast: true });

I did my tests based on this example in the documentation:

sock.sendMessage(jid, {image: {url: url}, caption: caption}, {backgroundColor : backgroundColor, font : font, statusJidList: statusJidList, broadcast : true})

Is the feature actually broken or am I implementing something wrong?

SuhailTechInfo commented 5 months ago

Is the feature actually broken or am I implementing something wrong?

Everything is fine, just little thing is messed

statusJidList: [ Bot_Jid , ...users_Jid ], // Must need to put "Bot_Jid" in array, OtherWise you can't see your status


- status'll be updated but you can't see it, If `Bot_Number_Jid` is not Present in `statusJidList`

***HOPE IT'LL HELP!***
jeferssonlemes commented 5 months ago

@SuhailTechInfo Thanks !! You're right, I actually redid the test and the status update worked as expected, but what about sending it to the broadcast list, is there also something I did wrong?

SuhailTechInfo commented 5 months ago

what about sending it to the broadcast list, is there also something I did wrong?

Basicaly Theres no option to get directly broadcast list

You Can store USers Jid By Following Steps:

AFTER THAT

statusJidList: [ Bot_Jid ,  ...global.users], 
jeferssonlemes commented 5 months ago

@SuhailTechInfo I understood perfectly and I'm grateful for your valuable tips, but I still have problems trying to send messages to a broadcast list, as it is in the resource documentation where it says: "You can send messages to broadcast lists the same way you send messages to groups & individual chats" "Right now, WA Web does not support creating broadcast lists, but you can still delete them" "Broadcast IDs are in the format 12345678@broadcast"

Using status@broadcast is ok for me, I only send it to broadcast lists that aren't. Does this no longer work for you?

PurpShell commented 2 months ago

You can fetch the status contacts list via privacy fetch

PurpShell commented 2 months ago

Will implement

allanlisboa commented 1 month ago

I have the same problem! I can't send messages to broadcast lists as stated in the documentation

Sebuahhobi commented 6 days ago

I have same problem, PENDING.