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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Webhook
- WebRoutes
- StrictLogging
- BotBase
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract val client: RequestHandler[Future]
- Definition Classes
- BotBase
- implicit abstract val monad: MonadError[Future, Throwable]
- Definition Classes
- BotBase
- abstract val port: Int
- Definition Classes
- WebRoutes
- abstract val webhookUrl: String
URL for the webhook.
URL for the webhook.
'webhookUrl' must be consistent with 'webhookRoute' (by default '/').
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def allowedUpdates: Option[Seq[UpdateType]]
- Definition Classes
- BotBase
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def certificate: Option[InputFile]
Specify self-signed certificate file.
Specify self-signed certificate file. Check instructions at Using self-signed certificates.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val httpsContext: Option[HttpsConnectionContext]
- Definition Classes
- WebRoutes
- val interfaceIp: String
- Definition Classes
- WebRoutes
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def receiveCallbackQuery(callbackQuery: CallbackQuery): Future[Unit]
- Definition Classes
- BotBase
- def receiveChannelPost(message: Message): Future[Unit]
- Definition Classes
- BotBase
- def receiveChosenInlineResult(chosenInlineResult: ChosenInlineResult): Future[Unit]
- Definition Classes
- BotBase
- def receiveEditedChannelPost(message: Message): Future[Unit]
- Definition Classes
- BotBase
- def receiveEditedMessage(editedMessage: Message): Future[Unit]
- Definition Classes
- BotBase
- def receiveExtMessage(extMessage: (Message, Option[User])): Future[Unit]
- Definition Classes
- BotBase
- def receiveInlineQuery(inlineQuery: InlineQuery): Future[Unit]
- Definition Classes
- BotBase
- def receiveJoinRequest(joinRequest: ChatJoinRequest): Future[Unit]
- Definition Classes
- BotBase
- def receiveMessage(message: Message): Future[Unit]
- Definition Classes
- BotBase
- def receivePreCheckoutQuery(preCheckoutQuery: PreCheckoutQuery): Future[Unit]
- Definition Classes
- BotBase
- def receiveShippingQuery(shippingQuery: ShippingQuery): Future[Unit]
- Definition Classes
- BotBase
- def receiveUpdate(u: Update, botUser: Option[User]): Future[Unit]
- Definition Classes
- BotBase
- def request: RequestHandler[Future]
- Definition Classes
- BotBase
- def routes: Route
- def run(): Future[Unit]
- def shutdown(): Unit
- Definition Classes
- WebRoutes → BotBase
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- lazy val unit: Future[Unit]
- Attributes
- protected
- Definition Classes
- BotBase
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def webhookReceiver: Route
- def webhookRoute: Route
Webhook route.
Webhook route.
'webhookUrl/' by default.
- returns
Route handler to process updates.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated