Developers » API methods » Messages » messages.setActivity
Changes the status of a user as typing in a conversation.
This method can be called with a user token received in Standalone-app via Implicit Flow. Access rights required: messages.
This method can be called with a community token. Access rights required: messages.
user_idUser ID.
typetyping Ś user has started to type,
audiomessage Ś user has started to record audiomessage
peer_idDestination ID.

For user:
User ID, e.g. 12345.

For chat:
2000000000 + chat_id, e.g. 2000000001.

For community:
- community ID, e.g. -12345.

int (number), accessible for versions from 5.38
positive number
Returns 1.

"User N is typing..." is shown for 10 seconds after the method is called, or until the message is sent.
917You don't have access to this chat
932Your community can't interact with this peer
936Contact not found
Global errors can occur while running. See their descriptions on this page.
Version historyShow all
apps.get Ŕ apps.getCatalog methods returns photo object for screenshots fields. Add in_read, out_read fields in response of messages.getDialogs, messages.getHistory and messages.getLongPollHistory methods. Add peer_id parameter for messages.send, messages.sendSticker, messages.deleteDialog, messages.setActivity and messages.getHistory methods.