Skip to content

Send multiple messages with .send and messageRoom with one async function but still miss order. #102

Open
@PonnyZuo

Description

@PonnyZuo

I use async function and await messageRoom.But I still can't correct my messages' order. Is there any way to solve this?

async function sendmultiple (robot, msg,msg2,msg3) {
    const roomID = roomSession.roomID;
    await robot.messageRoom(roomID , msg);
    await robot.messageRoom(roomID , msg2);
    await robot.messageRoom(roomID , msg3);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions