Documentation - v0.27.0
    Preparing search index...
    • 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.

      Parameters

      • client: ITelegramClient
      • chatId: InputPeerLike

        Chat ID

      • 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'

        Typing status

      • Optionalparams: { businessConnectionId?: string; progress?: number; threadId?: number }
        • OptionalbusinessConnectionId?: string

          Unique identifier of the business connection on behalf of which the action will be sent

        • Optionalprogress?: number

          For upload_* and history import actions, progress of the upload

        • OptionalthreadId?: number

          For comment threads, ID of the thread (i.e. top message)

      Returns Promise<void>