Telegram GramPro icon

Telegram GramPro

Advanced Telegram MTProto client

Actions4

Channel → Get Admin & Bots

AI-generated

Summary

Get Admin & Bots operation for Telegram Channel resource

Inputs

  • channelId (required) — Channel or group ID, username (@channel), or invite link to retrieve participants from
  • limit — Maximum number of members to retrieve (leave empty to get all members). Default: 50. Optional parameter that controls how many participants are returned. When not specified or set to empty, all members are retrieved.
  • filterAdmins — Whether to filter and show only admin participants. When true, only users with administrator rights in the channel are returned. Default: false. Note: This filter is only effective when filterBots is also considered.
  • filterBots — Whether to filter and show only bot participants. When true, only bot users are returned. Default: false. Note: This filter is only effective when filterAdmins is also considered.

Output shape

array of participant objects

Returns participant information including user ID, username, first name, last name, bot status, and admin status. The filtering behavior depends on the combination of filterAdmins and filterBots settings - both can be true simultaneously to get intersection of admins and bots, or individually for separate filtering.

Examples

Example 1: Get all participants from a channel

channelId: '-1001234567890', limit: (empty), filterAdmins: false, filterBots: false

Example 2: Get only admin participants from a channel

channelId: 'examplechannel', limit: 100, filterAdmins: true, filterBots: false

Example 3: Get only bot participants from a channel

channelId: 'mychannel', limit: 50, filterAdmins: false, filterBots: true

Links

Discussion