Get Bot • AI Agent SDK

get_bot: Get a registered bot by platform name.

get_bot

Method

</div>

This is a method of the BotOSProtocol class in the protocols module.

Get a registered bot by platform name.

Signature

python
def get_bot(platform: str) -> Optional[Any]

Parameters

ParamField str

Platform identifier (e.g. “telegram”).

Returns

ResponseField Optional[Any]

The Bot instance, or None if not found.

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 1583