Link Search Menu Expand Document

Constructor: updateUserTyping

Back to constructors index

The user is preparing a message; 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
user_idlongYesUser id
actionSendMessageActionYesAction type

Type: Update

Example:

$updateUserTyping = ['_' => 'updateUserTyping', 'user_id' => long, 'action' => SendMessageAction];