Class Extension
java.lang.Object
org.teleight.teleightbots.extensions.Extension
Blueprint for creating a new extension.
Each extension has a reference to its parent bot.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TelegramBotA reference to the bot that this extension is associated with. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
bot
A reference to the bot that this extension is associated with.
-
-
Constructor Details
-
Extension
The constructor for the Extension class.- Parameters:
bot- The bot that this extension is associated with.
-
-
Method Details
-
start
public void start()Method used when the extension is started. -
shutdown
public void shutdown()Method used when the extension is shut down.
-