Blog and knowledge base of the service

The "Typing" action (sendChatAction) in Telegram

The "Typing" action (sendChatAction) in Telegram is a method of indicating bot activity that displays the status "typing..." in the user interface. This is a key UX element that signals the performance of long-term operations (content generation, data search). Unlike text messages, typing does not transmit content, but it prevents request timeout and increases trust in the bot. 

The "Typing" action (sendChatAction) in Telegram

What are the limitations of "Typing..." in Telegram?

1. Duration:

  - The status is active for a maximum of 5 seconds. 

  - For operations >5 seconds → resend the action. 

2. Intervals:

  - Minimum interval between requests: 1 second.

3. Compatibility:

  - Does not work in channels (only chats/groups). 

Popular errors when sending the "Typing..." action

400 Bad Request: Chat not found

- Reason: Invalid chat_id or the bot is excluded from the chat. 

- Solution: Check the relevance of the chat_id via getUpdates. 

403 Forbidden: Bot was blocked by the user

- Solution: Requires the user to unlock the bot. 

400 Bad Request: Invalid action type

- Reason: A non-existent action is specified (for example, `"thinking"`). 

- Solution: Use only [official actions](https://core.telegram.org/bots/api#sendchataction ). 

429 Too Many Requests

- Reason: Frequent requests (>30/sec). 

Information

Technical information for the BOT-MARKET API

  1. -Action type code (`ActionType'): "11" (for `typing'). 
  2. -Max. frequency of requests: 

  Groups: 20 requests/second, 

  Private chats: 5 requests/second.