Appearance
@line/bot-sdk / ContentProvider
Type Alias: ContentProvider<WithPreview> 
ContentProvider<
WithPreview> = {type:"line"; } | {originalContentUrl:string;previewImageUrl:WithPreviewextendstrue?string:undefined;type:"external"; }
Defined in: lib/types.ts:359
Type Parameters 
WithPreview 
WithPreview extends boolean = true
Type Declaration 
{ type: "line"; }
type 
type:
"line"
The content is provided by LINE.
The data itself can be retrieved from the content API.
{ originalContentUrl: string; previewImageUrl: WithPreview extends true ? string : undefined; type: "external"; }
originalContentUrl 
originalContentUrl:
string
URL of the content. Only included when contentProvider.type is external.
previewImageUrl 
previewImageUrl:
WithPreviewextendstrue?string:undefined
URL of the content preview. Only included when contentProvider.type is external.
For contents without preview (e.g. audio), it's undefined.
type 
type:
"external"
The content is provided by a provider other than LINE