Interface TelegramBot

All Known Subinterfaces:
LongPollingBot, WebhookBot

public interface TelegramBot
Main interface for telegram bots.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return bot token to access Telegram API
    Return username of this bot
    default void
    Is called when bot gets registered
  • Method Details

    • getBotUsername

      String getBotUsername()
      Return username of this bot
    • getBotToken

      String getBotToken()
      Return bot token to access Telegram API
    • onRegister

      default void onRegister()
      Is called when bot gets registered