getChatAdministrators
Returns ChatMember[] ↗
Use this method to get a list of administrators in a chat, which aren’t bots.
Required: chat_id
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("get_chat_administrators", { chat_id: "YOUR_CHAT_ID"})Parameters
chat_id number | string Required
Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername).
Related methods
getAvailableGifts · getBusinessAccountGifts · getBusinessAccountStarBalance · getBusinessConnection · getChat · getChatGifts · getChatMember · getChatMemberCount · getChatMenuButton · getCustomEmojiStickers · getFile · getForumTopicIconStickers · getGameHighScores · getMe · getMyCommands · getMyDefaultAdministratorRights · getMyDescription · getMyName · getMyShortDescription · getMyStarBalance · getStarTransactions · getStickerSet · getUpdates · getUserChatBoosts · getUserGifts · getUserProfileAudios · getUserProfilePhotos · getWebhookInfo