Documentation - v0.29.6
    Preparing search index...

    Function createStreamingDraft

    • Create a streaming text message draft

      Parameters

      • client: ITelegramClient
      • chatId: InputPeerLike

        Chat ID

      • Optionalparams: {
            businessConnectionId?: string;
            mode?: "replace" | "append";
            threadId?: number;
        }
        • OptionalbusinessConnectionId?: string

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

        • Optionalmode?: "replace" | "append"

          Mode of the draft's send method

          • append - appends the text to the previous draft
          • replace - replaces the previous draft with the new one

          replace

        • OptionalthreadId?: number

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

      Returns Promise<StreamingDraft>