org.khasanof.FluentBot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-fluent Show documentation
Show all versions of spring-boot-starter-fluent Show documentation
Fluent - Easy Telegram Bots with Spring
package org.khasanof;
import org.khasanof.config.ApplicationProperties;
import org.telegram.telegrambots.meta.api.objects.Update;
/**
* Author: Nurislom
*
* Date: 18.06.2023
*
* Time: 10:30
*
* Package: org.khasanof.main
*/
public class FluentBot extends AbstractFluentBot {
public FluentBot(MainHandler handler, ApplicationProperties properties) {
super(handler, properties.getBot());
}
@Override
public String getBotUsername() {
return bot.getUsername();
}
@Override
public String getBotToken() {
return bot.getToken();
}
@Override
public void onUpdateReceived(Update update) {
handler.process(update);
}
}