> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Bot • AI Agent SDK

> get_bot: Get a registered bot by platform name.

# get\_bot

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**BotOSProtocol**](../classes/BotOSProtocol) class in the [**protocols**](../modules/protocols) module.

Get a registered bot by platform name.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_bot(platform: str) -> Optional[Any]
```

## Parameters

<ParamField query="platform" type="str" required={true}>
  Platform identifier (e.g. "telegram").
</ParamField>

### Returns

<ResponseField name="Returns" type="Optional[Any]">
  The Bot instance, or None if not found.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/protocols.py#L1368">
  `praisonaiagents/bots/protocols.py` at line 1368
</Card>
