org.telegram.telegrambots.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.generics;
/**
* @author Ruben Bermudez
* @version 1.0
* @brief TODO
* @date 29 of October of 2016
*/
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();
/**
* @deprecated Use @link{{@link #stop()}} instead
*/
default void close() {
this.stop();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy