Constructor: updateChatUserTyping

Back to constructors index

The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he’s been doing.

Attributes:

Name Type Required Description
chat_id int Yes Group id
user_id int Yes User id
action SendMessageAction Yes Type of action
Parameter added in Layer 17.

Type: Update

Example:

$updateChatUserTyping = ['_' => 'updateChatUserTyping', 'chat_id' => int, 'user_id' => int, 'action' => SendMessageAction];

Or, if you’re into Lua:

updateChatUserTyping={_='updateChatUserTyping', chat_id=int, user_id=int, action=SendMessageAction}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.