- sendTyping(
client: ITelegramClient,
chatId: InputPeerLike,
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,
params?: {
businessConnectionId?: string;
progress?: number;
threadId?: number;
},
): Promise<void> Parameters
- client: ITelegramClient
- chatId: InputPeerLike
- 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 = 'typing' Optional
params: { businessConnectionId?: string; progress?: number; threadId?: number }Optional
businessConnectionId?: string
Optional
progress?: number
Optional
threadId?: number
Returns Promise<void>
Sends a current user/bot typing event to a conversation partner or group.
This status is set for 6 seconds, and is automatically cancelled if you send a message.
If you need a continuous typing status, use setTyping instead.