public async Task <MessageResult> SendMessageAsync(string userId, string text, List <QuickReply> quickReplies) { try { return(await sendClient.SendMessageAsync(userId, text, quickReplies)); } catch (Exception e) { Logger.LogError(e, e.Message); return(BaseResult.CreateFailed <MessageResult>()); } }
public void SendMessageTest() { string result = client.SendMessageAsync(UserId.ToString(), "Test message").Result.Id; Trace.WriteLine($"Message Id: {result}"); }