InputGameShortName

class pyrogram.raw.types.InputGameShortName

Game by short name

Constructor of InputGame.

Details:
  • Layer: 227

  • ID: C331E80A

Parameters:
  • bot_id (InputUser) – The bot that provides the game

  • short_name (str) – The game’s short name, usually obtained from a game link »

TL Schema

inputGameShortName#c331e80a
bot_id:InputUser
short_name:string

= InputGame

Parameter Tree

InputGameShortName
├── bot_id → InputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ └── InputUserFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
└── short_name → string

Example

InputGameShortName(
    bot_id=await app.resolve_user(chat_id),
    short_name="text",
)