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

pro.zackpollard.telegrambot.api.extensions.Extension Maven / Gradle / Ivy

package pro.zackpollard.telegrambot.api.extensions;

import pro.zackpollard.telegrambot.api.TelegramBot;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author DarkSeraphim.
 */
public interface Extension {

    @Target(ElementType.TYPE)
    @Retention(RetentionPolicy.RUNTIME)
    @interface DefaultProvider {
        Class value();
    }

    @FunctionalInterface
    interface Provider {
        T create(TelegramBot bot);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy