get_user_chat_boosts()

Client.get_user_chat_boosts()

Get the list of boosts applied to a chat by a specific user.

Usable by Users Bots

Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • user_id (int | str) – Unique identifier (int) or username (str) of the user whose boosts to retrieve.

Returns:

ChatBoostsList – On success, a ChatBoostsList object is returned.

Example

boosts = await app.get_user_chat_boosts(chat_id="mychannel", user_id=123456789)
print(f"User has {boosts.total_count} boosts in this chat")