Function _normalizeInputMedia
- _normalizeInputMedia(
client: ITelegramClient,
media: InputMediaLike,
params?: {
businessConnectionId?: string;
progressCallback?: (uploaded: number, total: number) => void;
uploadPeer?: TypeInputPeer;
},
uploadMedia?: boolean,
): Promise<tl.TypeInputMedia>
Normalize an InputMediaLike to
InputMedia
, uploading the file if needed.