@japofc/baileys - v2.4.7
GitHub
npm
Preparing search index...
getUrlInfo
Function getUrlInfo
getUrlInfo
(
text
:
any
,
opts
?:
{
fetchOpts
?:
{
allowPrivate
?:
boolean
;
checkDns
?:
boolean
;
dispatcher
?:
any
;
fetchImpl
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
;
headers
?:
any
;
maxContentLength
?:
number
;
timeout
?:
number
;
timeoutMs
?:
number
;
[
key
:
string
]:
any
;
}
;
logger
?:
any
;
thumbnailWidth
?:
number
;
uploadImage
?:
any
;
}
,
)
:
Promise
<
|
{
"canonical-url"
:
any
;
description
:
any
;
highQualityThumbnail
?:
any
;
jpegThumbnail
?:
Buffer
<
ArrayBufferLike
>
;
"matched-text"
:
any
;
originalThumbnailUrl
:
any
;
title
:
any
;
}
|
undefined
,
>
Parameters
text
:
any
Optional
opts
:
{
fetchOpts
?:
{
allowPrivate
?:
boolean
;
checkDns
?:
boolean
;
dispatcher
?:
any
;
fetchImpl
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
;
headers
?:
any
;
maxContentLength
?:
number
;
timeout
?:
number
;
timeoutMs
?:
number
;
[
key
:
string
]:
any
;
}
;
logger
?:
any
;
thumbnailWidth
?:
number
;
uploadImage
?:
any
;
}
Returns
Promise
<
|
{
"canonical-url"
:
any
;
description
:
any
;
highQualityThumbnail
?:
any
;
jpegThumbnail
?:
Buffer
<
ArrayBufferLike
>
;
"matched-text"
:
any
;
originalThumbnailUrl
:
any
;
title
:
any
;
}
|
undefined
,
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
GitHub
npm
@japofc/baileys - v2.4.7
Loading...