- setTyping(
client: ITelegramClient,
params: {
businessConnectionId?: string;
peerId: InputPeerLike;
progress?: number;
status?:
| "contact"
| "game"
| "geo"
| "sticker"
| "typing"
| "cancel"
| "record_video"
| "upload_video"
| "record_voice"
| "upload_voice"
| "upload_photo"
| "upload_document"
| "record_round"
| "upload_round"
| "speak_call"
| "history_import"
| TypeSendMessageAction;
threadId?: number;
},
): Promise<void> Parameters
- client: ITelegramClient
- params: {
businessConnectionId?: string;
peerId: InputPeerLike;
progress?: number;
status?:
| "contact"
| "game"
| "geo"
| "sticker"
| "typing"
| "cancel"
| "record_video"
| "upload_video"
| "record_voice"
| "upload_voice"
| "upload_photo"
| "upload_document"
| "record_round"
| "upload_round"
| "speak_call"
| "history_import"
| TypeSendMessageAction;
threadId?: number;
}Optional
businessConnectionId?: string
Optional
progress?: number
Optional
status?:
| "contact"
| "game"
| "geo"
| "sticker"
| "typing"
| "cancel"
| "record_video"
| "upload_video"
| "record_voice"
| "upload_voice"
| "upload_photo"
| "upload_document"
| "record_round"
| "upload_round"
| "speak_call"
| "history_import"
| TypeSendMessageAction
Optional
threadId?: number
Returns Promise<void>
Sets whether a user is typing in a specific chat
This status is automatically renewed by mtcute until a further call with
cancel
is made, or a message is sent to the chat.