WebhookBot

telegramium.bots.high.WebhookBot
See theWebhookBot companion class
object WebhookBot

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
WebhookBot.type

Members list

Value members

Concrete methods

def compose[F[_] : Async](bots: List[WebhookBot[F]], port: Int, host: String, keystorePath: Option[String], keystorePassword: Option[String]): Resource[F, Server]

Use this method to compose multiple Webhook bots as a single Http Server that will register the webhooks and handle the requests.

Use this method to compose multiple Webhook bots as a single Http Server that will register the webhooks and handle the requests.

Value parameters

bots

List of bots to compose

host

Host to bind to. Default localhost

keystorePassword

password of the keystore file (if you want to use a self-signed SSL certificate)

keystorePath

path to the keystore file (if you want to use a self-signed SSL certificate)

port

Port to bind to

Attributes

Returns

Resource[F, Server[F]] Result Http server wrapped into a Resource data type