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
async def send(chat_id: Any, content: Union[str, Dict[str, Any]]) -> SendResultParameters
ParamField
AnyNo description available.
ParamField
UnionNo description available.
Returns
ResponseField
SendResultThe result of the operation.
Used By
Source
View on GitHubpraisonaiagents/bots/base.py at line 516