pro.zackpollard.telegrambot.api.menu.button.callback.ButtonCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtelegram-botapi Show documentation
Show all versions of jtelegram-botapi Show documentation
The Java Telegram Bot API is a wrapper for the Telegram HTTP Bot API
package pro.zackpollard.telegrambot.api.menu.button.callback;
import pro.zackpollard.telegrambot.api.menu.button.InlineMenuButton;
/**
* Acts as a Function, executes and updates button text
* @author Mazen Kotb
*/
public interface ButtonCallback {
/**
* Executed whenever the button is pressed.
* Text will not change if null is returned
* @param button Button being pressed
* @return updated text, null will be ignored
*/
String callback(InlineMenuButton button);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy