org.khasanof.AbstractFluentBot 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.bots.TelegramLongPollingBot;
/**
* Author: Nurislom
*
* Date: 18.06.2023
*
* Time: 10:31
*
* Package: org.khasanof.main
*/
public abstract class AbstractFluentBot extends TelegramLongPollingBot {
protected final MainHandler handler;
protected final ApplicationProperties.Bot bot;
public AbstractFluentBot(MainHandler handler, ApplicationProperties.Bot bot) {
super(bot.getToken());
this.handler = handler;
this.bot = bot;
}
}