GetChatAdministrators

data class GetChatAdministrators(val chatId: ChatIdentifier, val retrieveOtherBots: Boolean? = null) : ChatRequest, SimpleRequest<List<AdministratorChatMember>>

Represents a request to retrieve a list of administrators in a chat.

This class is used to get information about all administrators of a specific chat. The response includes details about the administrators, such as their permissions.

See also

Constructors

Link copied to clipboard
constructor(chatId: ChatIdentifier, retrieveOtherBots: Boolean? = null)

Properties

Link copied to clipboard
open override val chatId: ChatIdentifier

Unique identifier for the target chat or username of the target supergroup or channel.

Link copied to clipboard
open override val requestSerializer: <Error class: unknown class><out <Error class: unknown class>>
Link copied to clipboard
open override val resultDeserializer: <Error class: unknown class><List<AdministratorChatMember>>
Link copied to clipboard

(Serialized as return_bots) Optional flag indicating whether to include bot administrators other than the requesting bot.

Functions

Link copied to clipboard
open override fun method(): String