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_setInlineGameScore_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class messages_setInlineGameScore_
extends Function_<boolean>
import { messages_setInlineGameScore_ } 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 an inline message (bots only).

Constructors

new
messages_setInlineGameScore_(params: { edit_message?: true; force?: true; id: enums.InputBotInlineMessageID; 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: enums.InputBotInlineMessageID

ID of the inline message

score: number

New score

user_id: enums.InputUser

User identifier

Static Properties

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