Esempio n. 1
0
        private MessageResponse HelloMessage(string PSID)
        {
            // GraphApi graph = new GraphApi();
            var xt = graph.GetPageProfileAsync(PSID).Result;
            var messageResponse = new MessageResponse();

            messageResponse.ResponseMessage       = new ResponseMessage();
            messageResponse.ResponseMessage.RText =
                $"Hello {xt.FirstName},\nI'm a Safety Awareness Chatbot in the Faculty of Engineering and IT at UTS. \nWhy not take this short quiz to see how much you know about health and safety in our faculty?";
            messageResponse.MessagingType = "RESPONSE";
            messageResponse.Recipient     = new Recipient();
            messageResponse.Recipient.Id  = PSID;


            return(messageResponse);
        }