MadelineProtoDocs/docs/API_docs/constructors/updateChatUserTyping.md
2024-05-01 14:53:46 +02:00

1.3 KiB

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

Attributes:

Name Type Required Description
chat_id long Yes Group id
from_id Peer Yes Peer that started typing (can be the chat itself, in case of anonymous admins).
action SendMessageAction Yes Type of action

Type: Update

Example:

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