Class PollingUpdateProvider

    • Constructor Detail

      • PollingUpdateProvider

        public PollingUpdateProvider​(int sleepInterval,
                                     int timeout,
                                     long maxUpdateAge,
                                     java.util.List<UpdateType> allowedUpdates,
                                     java.util.function.Consumer<TelegramException> updateErrorHandler)
      • PollingUpdateProvider

        public PollingUpdateProvider()
    • Method Detail

      • getBotThreads

        public java.util.Map<TelegramBot,​java.lang.Thread> getBotThreads()
      • getSleepInterval

        public int getSleepInterval()
      • getTimeout

        public int getTimeout()
      • getMaxUpdateAge

        public long getMaxUpdateAge()
        The max age (in seconds) that an update can be. If the data is available and the update is older than maxUpdateAge seconds, then it is silently ignored. By default, this feature is disabled.
        See Also:
        Update.TimeSensitiveUpdate
      • getAllowedUpdates

        public java.util.List<UpdateType> getAllowedUpdates()
      • getUpdateErrorHandler

        public java.util.function.Consumer<TelegramException> getUpdateErrorHandler()