tock / ai.tock.bot.connector.messenger.model.webhook / Webhook

# Webhook

`abstract class Webhook : MessengerConnectorMessage` (source)

### Constructors

#### <init> | `Webhook()`

### Properties

#### priorMessage | `open val priorMessage: PriorMessage?`
#### recipient | `abstract val recipient: Recipient`
#### sender | `abstract val sender: Sender?`
#### timestamp | `abstract val timestamp: Long`

### Functions

#### playerId | `open fun playerId(playerType: PlayerType): PlayerId`
#### recipientId | `open fun recipientId(playerType: PlayerType): PlayerId`
#### toGenericMessage | Transforms this message into a generic GenericMessage. `open fun toGenericMessage(): GenericMessage?`

### Extension Functions

#### asGenericMessage | `fun ConnectorMessage.asGenericMessage(assertionCreator: Assert<GenericMessage>.() -> Unit): Unit`
#### findTransactionDecisionValueV3 | Return a GATransactionDecisionValueV3 if available. `fun ConnectorMessage.findTransactionDecisionValueV3(): GATransactionDecisionValueV3?`
#### findTransactionRequirementsCheckResultV3 | Return a GATransactionRequirementsCheckResultV3 if available. `fun ConnectorMessage.findTransactionRequirementsCheckResultV3(): GATransactionRequirementsCheckResultV3?`

### Inheritors

#### AccountLinkingWebhook | `class AccountLinkingWebhook : Webhook`
#### AppRolesWebhook | See https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/messaging_handovers#app_roles. `data class AppRolesWebhook : Webhook`
#### MessageEchoWebhook | `data class MessageEchoWebhook : Webhook`
#### MessageWebhook | `data class MessageWebhook : Webhook`
#### OptinWebhook | `data class OptinWebhook : Webhook`
#### PassThreadControlWebhook | See https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/messaging_handovers#pass_thread_control. `data class PassThreadControlWebhook : Webhook`
#### PostbackWebhook | `data class PostbackWebhook : Webhook`
#### RequestThreadControlWebhook | See https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/messaging_handovers#request_thread_control. `data class RequestThreadControlWebhook : Webhook`
#### TakeThreadControlWebhook | See https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/messaging_handovers#take_thread_control. `data class TakeThreadControlWebhook : Webhook`