Trait

com.bot4s.telegram.api

Polling

Related Doc: package api

Permalink

trait Polling extends BotBase with BotExecutionContext with StrictLogging

Provides updates by (long) polling Telegram servers.

See wiki.

It relies on the underlying HTTP client which should support a timeout allowing the connection to idle for a duration of at least 'pollingTimeout'.

Linear Supertypes
StrictLogging, LoggerHolder, BotExecutionContext, BotBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Polling
  2. StrictLogging
  3. LoggerHolder
  4. BotExecutionContext
  5. BotBase
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val client: RequestHandler

    Permalink
    Definition Classes
    BotBase
  2. implicit abstract val executionContext: ExecutionContext

    Permalink
    Definition Classes
    BotExecutionContext

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def allowedUpdates: Option[Seq[UpdateType]]

    Permalink

    Allowed updates.

    Allowed updates. See UpdateType.Filters. By default all updates are allowed.

    returns

    Allowed updates. None indicates no-filtering (all updates allowed).

    import UpdateType.Filters._
    override def allowedUpdates: Option[Seq[UpdateType]] =
      Some(MessageUpdates ++ InlineUpdates)
    Definition Classes
    BotBase
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. var getMe: User

    Permalink
    Attributes
    protected
    Definition Classes
    BotBase
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging → LoggerHolder
  15. final val loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    LoggerHolder
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def pollingGetUpdates(offset: Option[Long]): Future[Seq[Update]]

    Permalink

    The polling method, overload for custom behavior, e.g.

    The polling method, overload for custom behavior, e.g. back-off, retries...

  20. def pollingTimeout: Duration

    Permalink

    Long-polling timeout in seconds.

    Long-polling timeout in seconds.

    Specifies the amount of time the connection will be idle/waiting if there are no updates.

  21. def receiveCallbackQuery(callbackQuery: CallbackQuery): Unit

    Permalink
    Definition Classes
    BotBase
  22. def receiveChannelPost(message: Message): Unit

    Permalink
    Definition Classes
    BotBase
  23. def receiveChosenInlineResult(chosenInlineResult: ChosenInlineResult): Unit

    Permalink
    Definition Classes
    BotBase
  24. def receiveEditedChannelPost(message: Message): Unit

    Permalink
    Definition Classes
    BotBase
  25. def receiveEditedMessage(editedMessage: Message): Unit

    Permalink
    Definition Classes
    BotBase
  26. def receiveInlineQuery(inlineQuery: InlineQuery): Unit

    Permalink
    Definition Classes
    BotBase
  27. def receiveMessage(message: Message): Unit

    Permalink
    Definition Classes
    BotBase
  28. def receivePreCheckoutQuery(preCheckoutQuery: PreCheckoutQuery): Unit

    Permalink
    Definition Classes
    BotBase
  29. def receiveShippingQuery(shippingQuery: ShippingQuery): Unit

    Permalink
    Definition Classes
    BotBase
  30. def receiveUpdate(u: Update): Unit

    Permalink

    Dispatch updates to specialized handlers.

    Dispatch updates to specialized handlers. Incoming update can be a message, edited message, channel post, edited channel post, inline query, inline query results (sample), callback query, shipping or pre-checkout events.

    u

    Incoming update.

    Definition Classes
    BotBase
  31. def request: RequestHandler

    Permalink
    Definition Classes
    BotBase
  32. def run(): Future[Unit]

    Permalink
    Definition Classes
    PollingBotBase
  33. def shutdown(): Unit

    Permalink
    Definition Classes
    PollingBotBase
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StrictLogging

Inherited from LoggerHolder

Inherited from BotExecutionContext

Inherited from BotBase

Inherited from AnyRef

Inherited from Any

Ungrouped