get_chat_administrators#

template<class Connector>
api_result<array_t<chat_member_t>, Connector&&> get_chat_administrators(Connector &&connector, get_chat_administrators_args_t args)#
template<class Connector>
api_result<array_t<chat_member_t>, Connector&&> call(Connector &&connector, get_chat_administrators_args_t args)#

connector is any object satisfying connector concept.

Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.

struct get_chat_administrators_args_t#

Arguments that should be passed to get_chat_administrators().

variant_t<integer_t, string_t> chat_id#

Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)