Class Extension

java.lang.Object
org.teleight.teleightbots.extensions.Extension

public abstract class Extension extends Object
Blueprint for creating different types of extensions for the bot. Each extension has a reference to the bot
  • Field Details

  • Constructor Details

    • Extension

      public Extension(TelegramBot bot)
      The constructor for the Extension class.
      Parameters:
      bot - The bot that this extension is associated with.
  • Method Details

    • start

      public abstract void start()
      Method used when the extension is started.
    • shutdown

      public abstract void shutdown()
      Method used when the extension is shut down.