getUserChatBoosts¶
Returns: UserChatBoosts
- class litegram.methods.get_user_chat_boosts.GetUserChatBoosts(*, chat_id: ChatIdUnion, 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
litegram.types.user_chat_boosts.UserChatBoostsobject.Source: https://core.telegram.org/bots/api#getuserchatboosts
- chat_id: ChatIdUnion¶
Unique identifier for the chat or username of the channel (in the format
@channelusername)
Usage¶
As bot method¶
result: UserChatBoosts = await bot.get_user_chat_boosts(...)
Method as object¶
Imports:
from litegram.methods.get_user_chat_boosts import GetUserChatBoostsalias:
from litegram.methods import GetUserChatBoosts
With specific bot¶
result: UserChatBoosts = await bot(GetUserChatBoosts(...))