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

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