Class TelegramSpaceParser

java.lang.Object
io.micronaut.chatbots.telegram.core.TelegramSpaceParser
All Implemented Interfaces:
SpaceParser<Update,Chat>

@Singleton public class TelegramSpaceParser extends Object implements SpaceParser<Update,Chat>
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • TelegramSpaceParser

      public TelegramSpaceParser()
  • Method Details

    • parse

      @NonNull public @NonNull Optional<Chat> parse(@NonNull @NotNull @NonNull @NotNull Update update)
      Specified by:
      parse in interface SpaceParser<Update,Chat>
      Parameters:
      update - The message
      Returns:
      retrieves the space associated with the message