Trait

com.bot4s.telegram.api

Webhook

Related Doc: package api

Permalink

trait Webhook extends WebRoutes with StrictLogging

Uses a webhook, as an alternative to polling, to receive updates.

Automatically registers the webhook on run().

Self Type
Webhook with BotBase[Future] with BotExecutionContext with AkkaImplicits
Linear Supertypes
WebRoutes, StrictLogging, LoggerHolder, BotBase[Future], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Webhook
  2. WebRoutes
  3. StrictLogging
  4. LoggerHolder
  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[Future]

    Permalink
    Definition Classes
    BotBase
  2. implicit abstract val monad: MonadError[Future, Throwable]

    Permalink
    Definition Classes
    BotBase
  3. abstract val port: Int

    Permalink
    Definition Classes
    WebRoutes
  4. abstract val webhookUrl: String

    Permalink

    URL for the webhook.

    URL for the webhook.

    'webhookUrl' must be consistent with 'webhookRoute' (by default '/').

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
    Definition Classes
    BotBase
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def certificate: Option[InputFile]

    Permalink

    Specify self-signed certificate file.

    Specify self-signed certificate file. Check instructions at Using self-signed certificates.

  7. def clone(): AnyRef

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. val interfaceIp: String

    Permalink
    Definition Classes
    WebRoutes
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val logger: Logger

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def receiveCallbackQuery(callbackQuery: CallbackQuery): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  21. def receiveChannelPost(message: Message): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  22. def receiveChosenInlineResult(chosenInlineResult: ChosenInlineResult): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  23. def receiveEditedChannelPost(message: Message): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  24. def receiveEditedMessage(editedMessage: Message): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  25. def receiveExtMessage(extMessage: (Message, Option[User])): Future[Unit]

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

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

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

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

    Permalink
    Definition Classes
    BotBase
  30. def receiveUpdate(u: Update, botUser: Option[User]): Future[Unit]

    Permalink
    Definition Classes
    BotBase
  31. def request: RequestHandler[Future]

    Permalink
    Definition Classes
    BotBase
  32. def routes: Route

    Permalink
    Definition Classes
    WebhookWebRoutes
  33. def run(): Future[Unit]

    Permalink
    Definition Classes
    WebhookWebRoutes → BotBase
  34. def shutdown(): Unit

    Permalink
    Definition Classes
    WebRoutes → BotBase
  35. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  37. lazy val unit: Future[Unit]

    Permalink
    Attributes
    protected
    Definition Classes
    BotBase
  38. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def webhookReceiver: Route

    Permalink
  42. def webhookRoute: Route

    Permalink

    Webhook route.

    Webhook route.

    'webhookUrl/' by default.

    returns

    Route handler to process updates.

Inherited from WebRoutes

Inherited from StrictLogging

Inherited from LoggerHolder

Inherited from BotBase[Future]

Inherited from AnyRef

Inherited from Any

Ungrouped