org.telegram.telegrambots.meta.generics.BotSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegrambots-meta Show documentation
Show all versions of telegrambots-meta Show documentation
Easy to use library to create Telegram Bots
package org.telegram.telegrambots.meta.generics;
/**
* @author Ruben Bermudez
* @version 1.0
* Bot session interface
*/
public interface BotSession {
void setOptions(BotOptions options);
void setToken(String token);
void setCallback(LongPollingBot callback);
/**
* Starts the bot
*/
void start();
/**
* Stops the bot
*/
void stop();
/**
* Check if the bot is running
* @return True if the bot is running, false otherwise
*/
boolean isRunning();
}