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>());
     }
 }
Beispiel #2
0
        public void SendMessageTest()
        {
            string result = client.SendMessageAsync(UserId.ToString(), "Test message").Result.Id;

            Trace.WriteLine($"Message Id: {result}");
        }