for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package com.github.netkorp.simplecommand.commands;
import com.github.netkorp.telegram.framework.commands.abstracts.AbstractCommand;
import org.springframework.stereotype.Component;
import org.telegram.telegrambots.meta.api.objects.Update;
@Component
public class NameCommand extends AbstractCommand {
/**
* Processes the data of the commands.
*
* @param update The received message.
*/
@Override
public void execute(Update update) {
bot.sendMessage(update.getMessage().getChat().getFirstName(), update.getMessage().getChatId());
}
* Returns the description of the commands.
* @return The description.
public String description() {
return "It tells you what your first name is";