All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.kshashov.telegram.api.bind.annotation.request.PreCheckoutQueryRequest Maven / Gradle / Ivy

package com.github.kshashov.telegram.api.bind.annotation.request;


import com.github.kshashov.telegram.api.bind.annotation.BotRequest;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

import static com.github.kshashov.telegram.api.MessageType.PRECHECKOUT_QUERY;

/**
 * Annotation for mapping pre checkout query requests onto specific handler methods. Specifically, {@link
 * PreCheckoutQueryRequest} is a composed annotation that acts as a shortcut for {@code BotRequest(method =
 * RequestMethod.PRECHECKOUT_QUERY)}.
 *
 * @see BotRequest
 * @see MessageRequest
 * @see EditedMessageRequest
 * @see ChannelPostRequest
 * @see EditedChannelPostRequest
 * @see InlineQueryRequest
 * @see CallbackQueryRequest
 * @see ChosenInlineResultRequest
 * @see ShippingQueryRequest
 * @see PollRequest
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@BotRequest(type = PRECHECKOUT_QUERY)
public @interface PreCheckoutQueryRequest {

    /**
     * Alias for {@link BotRequest#value()}.
     * @return Request mapping templates.
     */
    @AliasFor(annotation = BotRequest.class)
    String[] value() default {};

    /**
     * Alias for {@link BotRequest#path()}.
     * @return Request mapping templates.
     */
    @AliasFor(annotation = BotRequest.class)
    String[] path() default {};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy