src/Api.php
public function getChatAdministrators(array $params)
    {
        $response = $this->post('getChatAdministrators', $params);

        return collect($response->getResult())
            ->map(function ($admin) {
                return new ChatMember($admin);
            })
            ->all();
    }
public function getChatAdministrators(array $params)
    {
        $response = $this->post('getChatAdministrators', $params);

        return collect($response->getResult())
            ->map(function ($admin) {
                return new ChatMember($admin);
            })
            ->all();
    }
public function getChatAdministrators ( array $ params ) { $ response = $ this -> post ( 'getChatAdministrators' , $ params ) ; return collect ( $ response -> getResult ( ) ) -> map ( function ( $ admin ) { return new ChatMember ( $ admin ) ; } ) -> all ( ) ; }
Get a list of administrators in a chat.

<code>
$params = [
'chat_id'  => '',
];
</code>

@link https://core.telegram.org/bots/api#getchatadministrators

@param array $params

@var string|int  $params ['chat_id'] Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername);

@throws TelegramSDKException

@return ChatMember[]
Get a list of administrators in a chat .