Class TelegramMessageListener

java.lang.Object
net.flectone.pulse.module.integration.telegram.listener.TelegramMessageListener
All Implemented Interfaces:
AutoCloseable, TelegramEventListener, org.telegram.telegrambots.longpolling.interfaces.LongPollingUpdateConsumer, org.telegram.telegrambots.longpolling.util.LongPollingSingleThreadUpdateConsumer

public class TelegramMessageListener extends Object implements TelegramEventListener
  • Constructor Details

  • Method Details

    • consume

      public void consume(org.telegram.telegrambots.meta.api.objects.Update update)
      Specified by:
      consume in interface org.telegram.telegrambots.longpolling.util.LongPollingSingleThreadUpdateConsumer
    • handleMessage

      public void handleMessage(@NonNull org.telegram.telegrambots.meta.api.objects.message.Message message)