MadelineProtoDocs/docs/API_docs/constructors/updateChatUserTyping.md
2019-12-27 17:48:04 +01:00

1.4 KiB

title description image
updateChatUserTyping 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. https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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}