getChatMember

Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a ChatMember object on success.

Api reference

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