Beispiel #1
0
        public async Task <SetWebhookResponse> SetWebHookAsync()
        {
            string             webHook = $"{_webHook}{_viberUrl}";
            SetWebhookResponse res     = await _viberBotClient.SetWebhookAsync(webHook);

            return(res);
        }
Beispiel #2
0
        // *** Webhook *** *** *** *** *** *** *** *** *** *** *** *** *** ***
        #region Webhook
        // *** Webhook/ Viber.Bot +++ +++ +++ +++ +++
        #region Webhook. Viber.Bot
        /// <summary>
        /// Webhook. Установить
        /// </summary>
        public async Task SetWebhookAsync(string webhookUrl)
        {
            var result = await _viberBotClient.SetWebhookAsync(webhookUrl);

            return;
        }