Link Search Menu Expand Document

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 further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing

Attributes:

NameTypeRequiredDescription
chat_idlongYesGroup id
from_idPeerYesPeer that started typing (can be the chat itself, in case of anonymous admins).
actionSendMessageActionYesType of action

Type: Update

Example:

$updateChatUserTyping = ['_' => 'updateChatUserTyping', 'chat_id' => long, 'from_id' => Peer, 'action' => SendMessageAction];