public async Task PostStatus(string postStr, long? reply_to, IReadOnlyList<long> mediaIds = null)
{
this.CheckAccountState();
if (mediaIds == null &&
Twitter.DMSendTextRegex.IsMatch(postStr))
{
await this.SendDirectMessage(postStr)
.ConfigureAwait(false);
return;
}
var response = await this.Api.StatusesUpdate(postStr, reply_to, mediaIds)
.ConfigureAwait(false);
var status = await response.LoadJsonAsync()
.ConfigureAwait(false);
this.UpdateUserStats(status.User);
if (status.Id == this.previousStatusId)
throw new WebApiException("OK:Delaying?");
this.previousStatusId = status.Id;
}