Class ParseModeUtils

java.lang.Object
io.micronaut.chatbots.telegram.core.ParseModeUtils

public final class ParseModeUtils extends Object
Utility methods for ParseMode.
Since:
1.0.0
Author:
Sergio del Amo
  • Method Details

    • parseModeOfFileExtension

      @NonNull public static @NonNull Optional<ParseMode> parseModeOfFileExtension(@NonNull @NonNull FileExtension fileExtension)
      Returns a ParseMode for a FileExtension.
      Parameters:
      fileExtension - File Extension
      Returns:
      a Telegram ParseMode