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