Get Channel • AI Agent SDK

get_channel: Get channel information.

get_channel

Async

Method

</div>

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

Get channel information.

Signature

python
async def get_channel(channel_id: str) -> Optional[BotChannel]

Parameters

ParamField str

Channel ID to look up

Returns

ResponseField Optional[BotChannel]

Channel information or None if not found

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 1252