Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/3_types.ts>Game

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface Game
Re-export
import { type Game } from "https://deno.land/x/mtkruto@0.1.118/3_types.ts";

This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.

Properties

title: string

Title of the game

description: string

Description of the game

photo: Photo

Photo that will be displayed in the game message in chats.

optional
text: string

Brief description of the game or high scores included in the game message

optional
textEntities: MessageEntity[]

Special entities that appear in text, such as usernames, URLs, bot commands, etc.

optional
animation: Animation

Animation that will be displayed in the game message in chats