messages.getGameHighScores
Example
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result = await client.invoke(new Api.messages.getGameHighScores({
peer: new Api.InputPeer({...}),
id: 8119184,
userId: new Api.InputUser({...}),
}));
console.log(result); // prints the result
})();import {Api, TelegramClient} from 'telegram';
import {StringSession} from 'telegram/sessions';
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result: Api.messages.HighScores = await client.invoke(new Api.messages.getGameHighScores({
peer: new Api.InputPeer({...}),
id: 8119184,
userId: new Api.InputUser({...}),
}));
console.log(result); // prints the result
})();TL schema
messages.highScores#9a3bfd99 scores:Vector<HighScore> users:Vector<User> = messages.HighScores;
---functions---
messages.getGameHighScores#e822649d peer:InputPeer id:int user_id:InputUser = messages.HighScores;Parameters
Result
Possible errors
Can bots use this methd ?
yes
Related pages
Last updated