public static Task <DingTalkApiResult> SendTextAsync(this IDingTalkGoClient client, string text, string[] atMobiles) { return(client.SendTextAsync(new TextMessage(text) { AtMobiles = atMobiles })); }
public static Task <DingTalkApiResult> SendTextAsync(this IDingTalkGoClient client, string text, bool isAtAll = false) { return(client.SendTextAsync(new TextMessage(text) { IsAtAll = isAtAll })); }
public async Task SendTextTest() { var result = await _dingTalkGoClient.SendTextAsync("hello world"); Assert.True(result.Success); }