public static async Task <bool> AnswerShippingQueryAsync(this BotClient api, AnswerShippingQueryArgs args, [Optional] CancellationToken cancellationToken)
 {
     if (api == null)
     {
         throw new ArgumentNullException(nameof(api));
     }
     if (args == default)
     {
         throw new ArgumentNullException(nameof(args));
     }
     return(await api.RPCA <bool>(MethodNames.AnswerShippingQuery, args, cancellationToken).ConfigureAwait(false));
 }
 public static bool AnswerShippingQuery(this BotClient api, AnswerShippingQueryArgs args)
 {
     if (api == null)
     {
         throw new ArgumentNullException(nameof(api));
     }
     if (args == default)
     {
         throw new ArgumentNullException(nameof(args));
     }
     return(api.RPC <bool>(MethodNames.AnswerShippingQuery, args));
 }
        public static async Task <bool> AnswerShippingQueryAsync(this BotClient api, string shippingQueryId, bool ok, [Optional] IEnumerable <ShippingOption>?shippingOptions, [Optional] string?errorMessage, [Optional] CancellationToken cancellationToken)
        {
            if (api == null)
            {
                throw new ArgumentNullException(nameof(api));
            }
            var args = new AnswerShippingQueryArgs(shippingQueryId, ok)
            {
                ShippingOptions = shippingOptions,
                ErrorMessage    = errorMessage
            };

            return(await api.RPCA <bool>(MethodNames.AnswerShippingQuery, args, cancellationToken).ConfigureAwait(false));
        }
        public static bool AnswerShippingQuery(this BotClient api, string shippingQueryId, bool ok, [Optional] IEnumerable <ShippingOption>?shippingOptions, [Optional] string?errorMessage)
        {
            if (api == null)
            {
                throw new ArgumentNullException(nameof(api));
            }
            var args = new AnswerShippingQueryArgs(shippingQueryId, ok)
            {
                ShippingOptions = shippingOptions,
                ErrorMessage    = errorMessage
            };

            return(api.RPC <bool>(MethodNames.AnswerShippingQuery, args));
        }