Slack\ApiClient::getChannelById PHP Method

getChannelById() public method

Gets a channel by its ID.
public getChannelById ( string $id ) : React\Promise\PromiseInterface
$id string A channel ID.
return React\Promise\PromiseInterface A promise for a channel object.
    public function getChannelById($id)
    {
        return $this->apiCall('channels.info', ['channel' => $id])->then(function (Payload $response) {
            return new Channel($this, $response['channel']);
        });
    }