getChatMember

suspend fun TelegramBotApiClient.getChatMember(requestBody: GetChatMemberRequest): TelegramResponse<ChatMember>

Use this method to get information about a member of a chat. Returns a ChatMember object on success.

suspend fun TelegramBotApiClient.getChatMember(chatId: Int, userId: Int): TelegramResponse<ChatMember>

Use this method to get information about a member of a chat. Returns a ChatMember object on success.

Parameters

chatId

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

userId

Unique identifier of the target user