Preparing search index...
The search index is not available
app-hablla
app-hablla
api/SendMessageTelegramApi
SendMessageTelegramApi
Class SendMessageTelegramApi
Hierarchy (
View Summary
)
SendMessageApi
SendMessageTelegramApi
Index
Constructors
constructor
Properties
endpoint
error
template
workspace
Id
Methods
make
Request
make
Request
With
Data
params
To
String
send
Audio
send
Document
send
Image
send
Text
send
Video
set
Bearer
Token
validate
Workspace
Id
Constructors
constructor
new
SendMessageTelegramApi
(
workspaceId
:
string
,
validateWorkspace
?:
boolean
,
)
:
SendMessageTelegramApi
Parameters
workspaceId
:
string
Optional
validateWorkspace
:
boolean
Returns
SendMessageTelegramApi
Properties
endpoint
endpoint
:
string
= ""
error
error
:
{
[
key
:
string
]:
Error
}
template
template
:
SendTemplateApi
workspace
Id
workspaceId
:
string
Methods
make
Request
makeRequest
<
ResponseData
=
any
>
(
method
:
"delete"
|
"get"
,
endpoint
:
string
,
config
?:
AxiosRequestConfig
,
)
:
Promise
<
AxiosResponse
<
ResponseData
>
>
Type Parameters
ResponseData
=
any
Parameters
method
:
"delete"
|
"get"
endpoint
:
string
Optional
config
:
AxiosRequestConfig
Returns
Promise
<
AxiosResponse
<
ResponseData
>
>
make
Request
With
Data
makeRequestWithData
<
ResponseData
=
any
,
CreateData
=
any
>
(
method
:
"post"
|
"put"
|
"patch"
,
endpoint
:
string
,
data
:
CreateData
,
config
?:
AxiosRequestConfig
,
)
:
Promise
<
AxiosResponse
<
ResponseData
>
>
Type Parameters
ResponseData
=
any
CreateData
=
any
Parameters
method
:
"post"
|
"put"
|
"patch"
endpoint
:
string
data
:
CreateData
Optional
config
:
AxiosRequestConfig
Returns
Promise
<
AxiosResponse
<
ResponseData
>
>
params
To
String
paramsToString
(
params
?:
{
[
key
:
string
]:
string
}
)
:
string
Parameters
Optional
params
:
{
[
key
:
string
]:
string
}
Returns
string
send
Audio
sendAudio
(
message
:
MessageFile
&
ServiceRequired
)
:
Promise
<
void
>
Parameters
message
:
MessageFile
&
ServiceRequired
Returns
Promise
<
void
>
send
Document
sendDocument
(
message
:
MessageFile
&
ServiceRequired
)
:
Promise
<
void
>
Parameters
message
:
MessageFile
&
ServiceRequired
Returns
Promise
<
void
>
send
Image
sendImage
(
message
:
MessageFile
&
Partial
<
{
caption
:
string
}
>
&
ServiceRequired
,
)
:
Promise
<
void
>
Parameters
message
:
MessageFile
&
Partial
<
{
caption
:
string
}
>
&
ServiceRequired
Returns
Promise
<
void
>
send
Text
sendText
(
message
:
MessageText
&
ServiceRequired
)
:
Promise
<
void
>
Parameters
message
:
MessageText
&
ServiceRequired
Returns
Promise
<
void
>
send
Video
sendVideo
(
message
:
MessageFile
&
Partial
<
{
caption
:
string
}
>
&
ServiceRequired
,
)
:
Promise
<
void
>
Parameters
message
:
MessageFile
&
Partial
<
{
caption
:
string
}
>
&
ServiceRequired
Returns
Promise
<
void
>
set
Bearer
Token
setBearerToken
(
token
:
string
)
:
void
Parameters
token
:
string
Returns
void
validate
Workspace
Id
validateWorkspaceId
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
endpoint
error
template
workspace
Id
Methods
make
Request
make
Request
With
Data
params
To
String
send
Audio
send
Document
send
Image
send
Text
send
Video
set
Bearer
Token
validate
Workspace
Id
app-hablla
Loading...