Documentation - v0.27.0
Preparing search index...
@mtcute/core
highlevel/methods
_normalizeInputMedia
Function _normalizeInputMedia
_normalizeInputMedia
(
client
:
ITelegramClient
,
media
:
InputMediaLike
,
params
?:
{
abortSignal
?:
AbortSignal
;
businessConnectionId
?:
string
;
progressCallback
?:
(
uploaded
:
number
,
total
:
number
)
=>
void
;
uploadPeer
?:
TypeInputPeer
;
}
,
uploadMedia
?:
boolean
,
)
:
Promise
<
TypeInputMedia
>
Normalize an
InputMediaLike
to
InputMedia
, uploading the file if needed.
Parameters
client
:
ITelegramClient
media
:
InputMediaLike
params
:
{
abortSignal
?:
AbortSignal
;
businessConnectionId
?:
string
;
progressCallback
?:
(
uploaded
:
number
,
total
:
number
)
=>
void
;
uploadPeer
?:
TypeInputPeer
;
}
= {}
uploadMedia
:
boolean
= false
Returns
Promise
<
TypeInputMedia
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation - v0.27.0
Loading...
Normalize an InputMediaLike to
InputMedia, uploading the file if needed.