GetChatAdministrators

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

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
@SerialName(value = "chat_id")
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: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<List<AdministratorChatMember>>
Link copied to clipboard
@SerialName(value = "return_bots")
val retrieveOtherBots: Boolean?

(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