Class

com.bot4s.telegram.clients

SttpClient

Related Doc: package clients

Permalink

class SttpClient[F[_]] extends RequestHandler[F] with StrictLogging

Sttp HTTP client. Supports browsers via sttp's FetchBackend.

Linear Supertypes
RequestHandler[F], StrictLogging, LoggerHolder, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SttpClient
  2. RequestHandler
  3. StrictLogging
  4. LoggerHolder
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SttpClient(token: String, telegramHost: String = "api.telegram.org")(implicit backend: SttpBackend[F, Nothing], monadError: MonadError[F, Throwable])

    Permalink

    token

    Bot token

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 apply[R](request: Request[R]): F[R]

    Permalink

    Spawns a type-safe request.

    Spawns a type-safe request.

    R

    Request's expected result type

    returns

    The request result wrapped in a Future (async)

    Definition Classes
    RequestHandler
  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. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  13. val logger: Logger

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def processApiResponse[R](response: Response[R]): R

    Permalink
    Attributes
    protected
    Definition Classes
    RequestHandler
  19. val readTimeout: Duration

    Permalink
  20. def sendRequest[R, T <: Request[_]](request: T)(implicit encT: Encoder[T], decR: Decoder[R]): F[R]

    Permalink
    Definition Classes
    SttpClientRequestHandler
  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from RequestHandler[F]

Inherited from StrictLogging

Inherited from LoggerHolder

Inherited from AnyRef

Inherited from Any

Ungrouped