Ejemplo n.º 1
0
        /// <summary>
        /// Sends the response message with a special markup.
        /// </summary>
        /// <param name="response">The response to send.</param>
        /// <returns>The task that represents the process of sending the response.</returns>
        private async Task SendResponseWithMarkup(BotMessage response)
        {
            var senderId       = response.Sender.Id;
            var responseMarkup = MessageConverter.ConvertMarkup(response.Markup);

            response.MessageId = await _responder.SendMessageAsync(senderId, response.Text, responseMarkup).ConfigureAwait(false);
        }