Type Alias: Payload
Payload = {
kind:"text";text:RichText; } | {caption?:RichText;items:MediaItem[];kind:"media"; } | {key:string;kind:"system";params?:Params; } | {choiceId:string;chosen:RichText;kind:"choice"; } | {data:Json;kind:"custom";name:string; }
Defined in: types.ts:157
What a message is.
Remarks
One media payload covers a single photo, a single video, a captioned item,
and a mixed album - the item count is what distinguishes them.