MadelineProtoDocs/old_docs/API_docs_v14/constructors/updateUserTyping.md

1.2 KiB

title description image
updateUserTyping The user is preparing a message; 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. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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 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
user_id int Yes User id
action SendMessageAction Yes Action type
Param added in Layer 17.

Type: Update

Example:

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

Or, if you're into Lua:

updateUserTyping={_='updateUserTyping', user_id=int, action=SendMessageAction}