api.getTrendingStickerSets()
Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by TDLib
Parameters
GetTrendingStickerSetsParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
offset | number | The offset from which to return the sticker sets; must be non-negative |
limit | number | The maximum number of sticker sets to be returned; up to 100. For optimal performance, the number of returned sticker sets is chosen by TDLib and can be smaller than the specified limit, even if the end of the list has not been reached |
Returns
ApiResponse interface:interface ApiResponse {
_: 'getTrendingStickerSets' | 'error'
airgram: Airgram
request: {
method: 'getTrendingStickerSets'
params: GetTrendingStickerSetsParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}