premium.getBoostsList #
Obtains info about the boosts that were applied to a certain channel or supergroup (admins only)¶
Layer 223
premium.boostsList#86f8613c flags:# count:int boosts:Vector<Boost> next_offset:flags.0?string users:Vector<User> = premium.BoostsList;
---functions---
premium.getBoostsList#60f67660 flags:# gifts:flags.0?true peer:InputPeer offset:string limit:int = premium.BoostsList; Parameters #
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| gifts | flags.0?true | Whether to return only info about boosts received from gift codes and giveaways created by the channel/supergroup » |
| peer | InputPeer | The channel/supergroup |
| offset | string | Offset for pagination, obtained from premium.boostsList.next_offset |
| limit | int | Maximum number of results to return, see pagination |
Result #
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Related pages #
Giveaways and gifts #
Telegram channel and supergroup administrators may launch giveaways to randomly distribute Telegram Premium subscriptions and other gifts among their followers, in exchange for boosts.¶
premium.boostsList #
List of boosts that were applied to a peer by multiple users.¶
Pagination in the API #
How to fetch results from large lists of objects.¶