getUserChatBoosts#

Returns: UserChatBoosts

class aiogram.methods.get_user_chat_boosts.GetUserChatBoosts(*, chat_id: int | str, user_id: int, **extra_data: Any)[source]#

Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in the chat. Returns a aiogram.types.user_chat_boosts.UserChatBoosts object.

Source: https://core.telegram.org/bots/api#getuserchatboosts

chat_id: int | str#

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

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(_ModelMetaclass__context: Any) None#

We need to both initialize private attributes and call the user-defined model_post_init method.

user_id: int#

Unique identifier of the target user

Usage#

As bot method#

result: UserChatBoosts = await bot.get_user_chat_boosts(...)

Method as object#

Imports:

  • from aiogram.methods.get_user_chat_boosts import GetUserChatBoosts

  • alias: from aiogram.methods import GetUserChatBoosts

With specific bot#

result: UserChatBoosts = await bot(GetUserChatBoosts(...))