get_user_boosts()

async Client.get_user_boosts()

Returns the list of boosts that were applied to a channel or supergroup by a specific user (admins only).

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target channel or supergroup.

  • user_id (int | str) – Unique identifier (int) or username (str) of the target user.

Returns:

BoostsList – The boosts list.

Example

boosts = await app.get_user_boosts(chat_id, user_id)