Game

class pyrogram.raw.types.Game

Indicates an already sent game

Constructor of Game.

Details:
  • Layer: 227

  • ID: BDF9653B

Parameters:
  • id (int 64-bit) – ID of the game

  • access_hash (int 64-bit) – Access hash of the game

  • short_name (str) – Short name for the game

  • title (str) – Title of the game

  • description (str) – Game description

  • photo (Photo) – Game preview

  • document (Document, optional) – Optional attached document

TL Schema

game#bdf9653b
flags:#
id:long
access_hash:long
short_name:string
title:string
description:string
photo:Photo
document:flags.0?Document

= Game

Parameter Tree

Game
├── id → long
├── access_hash → long
├── short_name → string
├── title → string
├── description → string
├── photo → Photo
│ ├── PhotoEmpty
│ │ └── id → long
│ └── Photo
│ ├── has_stickers → true (optional)
│ ├── id → long
│ ├── access_hash → long
│ ├── file_reference → bytes
│ ├── date → int
│ ├── sizes → Vector < PhotoSize >
│ │ ├── PhotoSizeEmpty
│ │ │ └── type → string
│ │ ├── PhotoSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── size → int
│ │ ├── PhotoCachedSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── bytes → bytes
│ │ ├── PhotoStrippedSize
│ │ │ ├── type → string
│ │ │ └── bytes → bytes
│ │ ├── PhotoSizeProgressive
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ └── sizes → Vector < int >
│ │ └── PhotoPathSize
│ │ ├── type → string
│ │ └── bytes → bytes
│ ├── video_sizes → Vector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ │ ├── type → string
│ │ │ ├── w → int
│ │ │ ├── h → int
│ │ │ ├── size → int
│ │ │ └── video_start_ts → double (optional)
│ │ ├── VideoSizeEmojiMarkup
│ │ │ ├── emoji_id → long
│ │ │ └── background_colors → Vector < int >
│ │ └── VideoSizeStickerMarkup
│ │ ├── stickerset → InputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ ├── InputStickerSetShortName
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ ├── sticker_id → long
│ │ └── background_colors → Vector < int >
│ └── dc_id → int
└── document → Document (optional)
├── DocumentEmpty
│ └── id → long
└── Document
├── id → long
├── access_hash → long
├── file_reference → bytes
├── date → int
├── mime_type → string
├── size → long
├── thumbs → Vector < PhotoSize > (optional)
│ ├── PhotoSizeEmpty
│ │ └── type → string
│ ├── PhotoSize
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ └── size → int
│ ├── PhotoCachedSize
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ └── bytes → bytes
│ ├── PhotoStrippedSize
│ │ ├── type → string
│ │ └── bytes → bytes
│ ├── PhotoSizeProgressive
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ └── sizes → Vector < int >
│ └── PhotoPathSize
│ ├── type → string
│ └── bytes → bytes
├── video_thumbs → Vector < VideoSize > (optional)
│ ├── VideoSize
│ │ ├── type → string
│ │ ├── w → int
│ │ ├── h → int
│ │ ├── size → int
│ │ └── video_start_ts → double (optional)
│ ├── VideoSizeEmojiMarkup
│ │ ├── emoji_id → long
│ │ └── background_colors → Vector < int >
│ ├── stickerset → InputStickerSet
│ │ ├── InputStickerSetEmpty
│ │ ├── InputStickerSetID
│ │ ├── InputStickerSetShortName
│ │ ├── InputStickerSetDice
│ │ ├── InputStickerSetPremiumGifts
│ │ └── InputStickerSetTonGifts
│ ├── sticker_id → long
│ └── background_colors → Vector < int >
├── dc_id → int
└── attributes → Vector < DocumentAttribute >
│ ├── w → int
│ └── h → int
│ ├── mask → true (optional)
│ ├── alt → string
│ ├── stickerset → InputStickerSet
│ │ ├── InputStickerSetEmpty
│ │ ├── InputStickerSetID
│ │ ├── InputStickerSetShortName
│ │ ├── InputStickerSetDice
│ │ ├── InputStickerSetPremiumGifts
│ │ └── InputStickerSetTonGifts
│ └── mask_coords → MaskCoords (optional)
│ └── MaskCoords
│ ├── round_message → true (optional)
│ ├── supports_streaming → true (optional)
│ ├── nosound → true (optional)
│ ├── duration → double
│ ├── w → int
│ ├── h → int
│ ├── preload_prefix_size → int (optional)
│ ├── video_start_ts → double (optional)
│ └── video_codec → string (optional)
│ ├── voice → true (optional)
│ ├── duration → int
│ ├── title → string (optional)
│ ├── performer → string (optional)
│ └── waveform → bytes (optional)
│ └── file_name → string
├── free → true (optional)
├── text_color → true (optional)
├── alt → string
└── stickerset → InputStickerSet

Example

Game(
    id=0,
    access_hash=0,
    short_name="text",
    title="text",
    description="text",
    photo=PhotoEmpty(id=0),
)