send • AI Agent SDK

send: Send a single message to *chat_id* (one API call, no chunking).

send

Async

Method

</div>

This is a method of the BasePlatformAdapter class in the base module.

Send a single message to chat_id (one API call, no chunking).

This is the low-level primitive the default delivery machinery builds on. Implementations should send content as-is and return a :class:SendResult. Chunking/retry/typing are handled by :meth:deliver; implementers need not repeat them here.

Signature

python
async def send(chat_id: Any, content: Union[str, Dict[str, Any]]) -> SendResult

Parameters

ParamField Any

No description available.

ParamField Union

No description available.

Returns

ResponseField SendResult

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/bots/base.py at line 516