Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts>messages_setGameScore_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_setGameScore_
extends Function_<enums.Updates>
import { messages_setGameScore_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Use this method to set the score of the specified user in a game sent as a normal message (bots only).

Constructors

new
messages_setGameScore_(params: { edit_message?: true; force?: true; peer: enums.InputPeer; id: number; user_id: enums.InputUser; score: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
edit_message: true

Set this flag if the game message should be automatically edited to include the current scoreboard

optional
force: true

Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters

id: number

Identifier of the sent message

peer: enums.InputPeer

Unique identifier of target chat

score: number

New score

user_id: enums.InputUser

User identifier

Static Properties

__F: (params: { edit_message?: true; force?: true; peer: enums.InputPeer; id: number; user_id: enums.InputUser; score: number; }) => enums.Updates
readonly
[name]: string
readonly
[paramDesc]: ParamDesc