> ## 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.

# WhatsApp Typing Indicator in Go

> Show the WhatsApp typing indicator from Golang: start and stop typing in a chat with the Hypersender WhatsApp API so your bot replies feel natural to users.

## Overview

Use these methods to show or hide typing indicators in a WhatsApp chat. The examples assume `ctx` is a `context.Context`, such as `context.Background()`.

## How to avoid getting blocked

We highly recommend reading our full guide on [How to Avoid Getting Blocked on WhatsApp](https://docs.hypersender.com/v2/hypersender/overview/whatsapp/how-to-avoid-getting-blocked-on-whatsapp.md) to ensure your usage complies with WhatsApp's policies and best practices, and see how to leverage these two methods effectively without risking your number being blocked.

### Start Typing

Indicate that the user is typing in a chat. [(learn more)](https://docs.hypersender.com/v2/api-reference/whatsapp/send-messages/start-typing.md)

> [tab] Basic Usage
>
> ```go theme={null}
> client := hypersender.NewClient()
>
> if _, err := client.WhatsApp.StartTyping(ctx, "20123456789@c.us"); err != nil {
>     log.Fatal(err)
> }
> ```

> [tab] Parameters
>
> | Parameter | Type | Required | Description |
> | - | - | - | - |
> | chatID | string | yes | The chat ID to indicate typing in |

### Stop Typing

Indicate that the user has stopped typing in a chat. [(learn more)](https://docs.hypersender.com/v2/api-reference/whatsapp/send-messages/stop-typing.md)

> [tab] Basic Usage
>
> ```go theme={null}
> client := hypersender.NewClient()
>
> if _, err := client.WhatsApp.StopTyping(ctx, "20123456789@c.us"); err != nil {
>     log.Fatal(err)
> }
> ```

> [tab] Parameters
>
> | Parameter | Type | Required | Description |
> | - | - | - | - |
> | chatID | string | yes | The chat ID to stop typing in |


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