示例#1
0
        public static string RemoveWebHook()
        {
            var request  = WebHookRequest.Create("");
            var response = Utils.SendRequest <WebHookRequest>(Utils.set_webhook, request);

            return(response);
        }
示例#2
0
        public static string SetWebHook()
        {
            var request  = WebHookRequest.Create(BotSettings.WebHookUrl);
            var response = Utils.SendRequest <WebHookRequest>(Utils.set_webhook, request);

            return(response);
        }