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.

Parameters:

NameTypeDescriptionRequired
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('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

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

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