Link Search Menu Expand Document

Method: messages.setTyping

Back to methods index

Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.


peerUsername, chat ID, Update, Message or InputPeerTarget user or groupOptional
top_msg_idintTopic IDOptional
actionSendMessageActionType of actionYes

Return type: Bool

Can bots use this method: YES

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$Bool = $MadelineProto->messages->setTyping(peer: $InputPeer, top_msg_id: $int, action: $SendMessageAction, );