AgentOS Extensions API - v1.0.3
Preparing search index...
integrations/telegram/src
SendPhotoTool
Class SendPhotoTool
Tool for sending photos via Telegram
SendPhotoTool
Implements
Implements
IAuthService
Index
Constructors
constructor
Properties
category
description
display
Name
has
Side
Effects
id
input
Schema
name
version
Methods
execute
Constructors
constructor
new
SendPhotoTool
(
telegramService
:
TelegramBotService
)
:
SendPhotoTool
Parameters
telegramService
:
TelegramBotService
Returns
SendPhotoTool
Properties
Readonly
category
category
:
"communication"
= 'communication'
Readonly
description
description
:
"Send a photo to a Telegram chat. Supports URLs, file paths, and base64 encoded images with optional captions."
= 'Send a photo to a Telegram chat. Supports URLs, file paths, and base64 encoded images with optional captions.'
Readonly
display
Name
displayName
:
"Send Telegram Photo"
= 'Send Telegram Photo'
Readonly
has
Side
Effects
hasSideEffects
:
true
Readonly
id
id
:
"telegramSendPhoto"
= 'telegramSendPhoto'
Readonly
input
Schema
inputSchema
:
{
properties
:
{
caption
:
{
description
:
string
;
type
:
string
}
;
chatId
:
{
description
:
string
;
type
:
string
[]
}
;
parseMode
:
{
description
:
string
;
enum
:
string
[]
;
type
:
string
}
;
photo
:
{
description
:
string
;
type
:
string
}
;
replyToMessageId
:
{
description
:
string
;
type
:
string
}
;
}
;
required
:
string
[]
;
type
:
string
;
}
= ...
Readonly
name
name
:
"telegramSendPhoto"
= 'telegramSendPhoto'
Readonly
version
version
:
"1.0.0"
= '1.0.0'
Methods
execute
execute
(
args
:
{
caption
?:
string
;
chatId
:
string
|
number
;
parseMode
?:
"Markdown"
|
"HTML"
;
photo
:
string
;
replyToMessageId
?:
number
;
}
,
context
:
ToolExecutionContext
,
)
:
Promise
<
ToolExecutionResult
>
Parameters
args
:
{
caption
?:
string
;
chatId
:
string
|
number
;
parseMode
?:
"Markdown"
|
"HTML"
;
photo
:
string
;
replyToMessageId
?:
number
;
}
context
:
ToolExecutionContext
Returns
Promise
<
ToolExecutionResult
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
category
description
display
Name
has
Side
Effects
id
input
Schema
name
version
Methods
execute
AgentOS Extensions API - v1.0.3
Loading...
Tool for sending photos via Telegram
SendPhotoTool
Implements