Documentation - v0.30.1
    Preparing search index...

    Function createRichStreamingDraft

    • Create a streaming rich message draft

      Parameters

      • client: ITelegramClient
      • chatId: InputPeerLike

        Chat ID

      • Optionalparams: {
            businessConnectionId?: string;
            disableUploadCache?: boolean;
            progressCallback?: (id: string, uploaded: number, total: number) => void;
            threadId?: number;
        }
        • OptionalbusinessConnectionId?: string

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

        • OptionaldisableUploadCache?: boolean

          Whether to disable upload cache (exists to prevent uploading the same media multiple times)

        • OptionalprogressCallback?: (id: string, uploaded: number, total: number) => void

          Function that will be called after some part of the media has been uploaded.

        • OptionalthreadId?: number

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

      Returns Promise<RichStreamingDraft>