Skip to main content

Should I wait for message status not Queued before sending next message?

private async Task CheckMessageStatus(string messageId)

{

var resp = await _restClient.Restapi().Account().Extension().MessageStore(messageId).Get();

if (resp.messageStatus == "Queued")

{

Thread.Sleep(2000);

await CheckMessageStatus(messageId);

}

}


No. You can send next message even if the previous message is still in "Queued" status. You can keep the message Id of each sent message and check them later if you want to know the status of those sent messages.

Just make sure that you don't send more than 40 messages per minute. Otherwise, you will hit the rate limit.


Thanks


Reply