> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hypersender.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Laravel Rust WhatsApp: Chats, Contacts and Other Endpoints

> Mark WhatsApp messages as seen, show typing, react, forward and delete messages, check contacts, and call any Hypersender endpoint from Laravel Rust.

These methods are on the same `Whatsapp` service as [sending messages](https://docs.hypersender.com/v2/packages-and-sdks/laravel-rust/whatsapp/send-messages.md).

## Seen and typing

```rust theme={null}
// Blue ticks for a message you received.
whatsapp.send_seen("20123456789@c.us", "false_20123456789@c.us_3EB0C767D26A1D3E").await?;

// Show "typing..." while you prepare an answer, then stop.
whatsapp.start_typing("20123456789@c.us").await?;
whatsapp.stop_typing("20123456789@c.us").await?;
```

## React, forward and delete

```rust theme={null}
// React with an emoji. An empty string removes the reaction.
whatsapp.react_to_message("false_20123456789@c.us_3EB0C767D26A1D3E", "👍").await?;

// Forward a message to another chat.
whatsapp.forward_message("20109876543@c.us", "false_20123456789@c.us_3EB0C767D26A1D3E").await?;

// Delete a message you sent.
whatsapp.delete_message("20123456789@c.us", "true_20123456789@c.us_3EB0C767D26A1D3E").await?;
```

## Check a number

Find out whether a phone number has WhatsApp before you message it:

```rust theme={null}
let response = whatsapp.check_contact_exists("20123456789").await?;
let result: serde_json::Value = response.json()?;
```

[(response format)](https://docs.hypersender.com/v2/api-reference/whatsapp/contacts/check-contact-exists.md)

## Queued requests

When Hypersender queues a request, its response holds a UUID. Look the request up with:

```rust theme={null}
let response = whatsapp.get_queued_request("9f8b7c6d-1111-4a2b-8c3d-4e5f6a7b8c9d").await?;
```

[(learn more)](https://docs.hypersender.com/v2/api-reference/whatsapp/queued-requests.md)

## Any other endpoint

The package covers the endpoints most apps use. For the rest, such as contact cards, LID lookups or chat lists, call the endpoint by its path with `post` or `get`. The instance ID, API key and headers are added for you, and `null` fields are left out of the body.

```rust theme={null}
use serde_json::json;

// POST /send-contact-card
whatsapp
    .post(
        "/send-contact-card",
        json!({
            "chatId": "20123456789@c.us",
            "contacts": [{ "fullName": "Sara Ali", "phoneNumber": 20109876543u64, "whatsappId": 20109876543u64 }],
        }),
    )
    .await?;

// GET /contacts/get-all?limit=50
let contacts: serde_json::Value = whatsapp
    .get("/contacts/get-all", json!({ "limit": 50 }))
    .await?
    .json()?;
```

The paths and fields are the same as in the [WhatsApp API reference](https://docs.hypersender.com/v2/api-reference/whatsapp/whatsapp-api-introduction.md). Use the path after `/{instance}`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.