MessageMediaGame

class pyrogram.raw.types.MessageMediaGame

Telegram game

Constructor of MessageMedia.

Details:
  • Layer: 223

  • ID: FDB19008

Parameters:

game (Game) – Game

Functions:

This object can be returned by 2 functions.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat)

messages.UploadImportedMedia

Upload a media file associated with an imported chat, click here for more info ».

TL Schema

messageMediaGame#fdb19008
game:Game

= MessageMedia

Parameter Tree

MessageMediaGame
└── gameGame
└── Game
├── idlong
├── access_hashlong
├── short_namestring
├── titlestring
├── descriptionstring
├── photoPhoto
│ ├── PhotoEmpty
│ │ └── idlong
│ └── Photo
│ ├── has_stickerstrue (optional)
│ ├── idlong
│ ├── access_hashlong
│ ├── file_referencebytes
│ ├── dateint
│ ├── sizesVector < PhotoSize >
│ │ ├── PhotoSizeEmpty
│ │ ├── PhotoSize
│ │ ├── PhotoCachedSize
│ │ ├── PhotoStrippedSize
│ │ ├── PhotoSizeProgressive
│ │ └── PhotoPathSize
│ ├── video_sizesVector < VideoSize > (optional)
│ │ ├── VideoSize
│ │ ├── VideoSizeEmojiMarkup
│ │ └── VideoSizeStickerMarkup
│ └── dc_idint
└── documentDocument (optional)
├── DocumentEmpty
│ └── idlong
└── Document
├── idlong
├── access_hashlong
├── file_referencebytes
├── dateint
├── mime_typestring
├── sizelong
├── thumbsVector < PhotoSize > (optional)
│ ├── PhotoSizeEmpty
│ ├── PhotoSize
│ ├── PhotoCachedSize
│ ├── PhotoStrippedSize
│ ├── PhotoSizeProgressive
│ └── PhotoPathSize
├── video_thumbsVector < VideoSize > (optional)
│ ├── VideoSize
│ ├── VideoSizeEmojiMarkup
├── dc_idint
└── attributesVector < DocumentAttribute >

Example

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