Skip to main content

$userLeaderBoard

This will return the position of the leaderboard

Parameters

FieldDescription
channelIdChat id for leaderboard
variableVariable name
typeLeaderIn which order it will be returned 1. asc (ascending / default) 2. dsc (descending)
customFormatting (optional)
listHow many to list (optional)

Options

  • top
  • id
  • first_name
  • username
  • type
  • value
  • last_name
  • language_code
  • bio

Examples

<AoiClient>.addCommand({
name: "userLeaderBoard",
code: `
$sendMessage[$chatLeaderBoard[$chatId;examples;;{top}. {first_name} - {value} ⏳️\n;10]]
`,
});