Class BotUtil

java.lang.Object
com.github.unafraid.telegrambot.util.BotUtil

public class BotUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends org.telegram.telegrambots.meta.generics.TelegramClient>
    void
    editMessage(T bot, org.telegram.telegrambots.meta.api.objects.CallbackQuery query, String text, boolean useMarkDown, org.telegram.telegrambots.meta.api.objects.replykeyboard.InlineKeyboardMarkup inlineMarkup)
     
    static <T extends org.telegram.telegrambots.meta.generics.TelegramClient>
    void
    editMessage(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, String text, boolean useMarkDown, org.telegram.telegrambots.meta.api.objects.replykeyboard.InlineKeyboardMarkup inlineMarkup)
     
    static <T extends org.telegram.telegrambots.meta.generics.TelegramClient>
    void
    sendAction(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, org.telegram.telegrambots.meta.api.methods.ActionType actionType)
     
    static <T extends org.telegram.telegrambots.meta.generics.TelegramClient>
    void
    sendHtmlMessage(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, String text, boolean replyToMessage, org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboard replayMarkup)
     
    static <T extends org.telegram.telegrambots.meta.generics.TelegramClient>
    org.telegram.telegrambots.meta.api.objects.message.Message
    sendMessage(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, String text, boolean replyToMessage, boolean useMarkDown, org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboard replayMarkup)
     
    static <T extends org.telegram.telegrambots.meta.generics.TelegramClient>
    void
    sendUsage(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, ICommandHandler handler)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BotUtil

      public BotUtil()
  • Method Details

    • sendAction

      public static <T extends org.telegram.telegrambots.meta.generics.TelegramClient> void sendAction(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, org.telegram.telegrambots.meta.api.methods.ActionType actionType) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException
    • sendUsage

      public static <T extends org.telegram.telegrambots.meta.generics.TelegramClient> void sendUsage(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, ICommandHandler handler) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException
    • sendMessage

      public static <T extends org.telegram.telegrambots.meta.generics.TelegramClient> org.telegram.telegrambots.meta.api.objects.message.Message sendMessage(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, String text, boolean replyToMessage, boolean useMarkDown, org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboard replayMarkup) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException
    • sendHtmlMessage

      public static <T extends org.telegram.telegrambots.meta.generics.TelegramClient> void sendHtmlMessage(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, String text, boolean replyToMessage, org.telegram.telegrambots.meta.api.objects.replykeyboard.ReplyKeyboard replayMarkup) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException
    • editMessage

      public static <T extends org.telegram.telegrambots.meta.generics.TelegramClient> void editMessage(T bot, org.telegram.telegrambots.meta.api.objects.message.Message message, String text, boolean useMarkDown, org.telegram.telegrambots.meta.api.objects.replykeyboard.InlineKeyboardMarkup inlineMarkup) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException
    • editMessage

      public static <T extends org.telegram.telegrambots.meta.generics.TelegramClient> void editMessage(T bot, org.telegram.telegrambots.meta.api.objects.CallbackQuery query, String text, boolean useMarkDown, org.telegram.telegrambots.meta.api.objects.replykeyboard.InlineKeyboardMarkup inlineMarkup) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException
      Throws:
      org.telegram.telegrambots.meta.exceptions.TelegramApiException