Airgram

Guides
/
/
Methods

api.getTrendingStickerSets()

Returns a list of trending sticker sets. For optimal performance, the number of returned sticker sets is chosen by TDLib

Parameters GetTrendingStickerSetsParams:

NameTypeDescription
offsetnumber The offset from which to return the sticker sets; must be non-negative
limitnumber 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>
}