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

    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;
      }
      • OptionalbusinessConnectionId?: string

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

      • peerId: InputPeerLike

        Chat ID where the user is currently typing

      • Optionalprogress?: number

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

      • Optionalstatus?:
            | "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 status to send

        typing

      • OptionalthreadId?: number

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

    Returns Promise<void>