Type alias OnSentArgs

OnSentArgs: {
    id?: string;
    message: ClientMessage;
    phoneID: string;
    request: ClientMessageRequest;
    response?: ServerMessageResponse;
    to: string;
    type: string;
}

Type declaration

  • Optional id?: string

    The message id, undefined if parsed is set to false

  • message: ClientMessage

    The message object

  • phoneID: string

    The bot's phoneID from where the message was sent

  • request: ClientMessageRequest

    The object sent to the server

  • Optional response?: ServerMessageResponse

    The parsed response from the server, undefined if parsed is set to false

  • to: string

    The user's phone number

  • type: string

    The message type

Generated using TypeDoc