Coeur-Morny-Cono/src/main/java/cc/sukazyo/cono/morny/bot/command/ITelegramCommand.java

24 lines
470 B
Java
Raw Normal View History

package cc.sukazyo.cono.morny.bot.command;
import cc.sukazyo.untitled.util.telegram.object.InputCommand;
import com.pengrad.telegrambot.model.Update;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public interface ITelegramCommand {
@Nonnull
String getName();
@Nullable
String[] getAliases();
@Nonnull
String getParamRule();
@Nonnull
String getDescription();
void execute (@Nonnull InputCommand command, @Nonnull Update event);
}