DEF STUDIO srl

Need help with Laravel and web development?

Hire one of our experts for your projects.

We build tailored products, websites and platforms — with care for UX, performance and maintainability.

Booking open for Q4 — limited slots

You are seeing the documentation for version 1, but the last version for this package is v1. Click here to go to the last version.

Games

How it works

Your bot can offer users HTML5 games to play solo or to compete against each other in groups and one-on-one chats. Check documentation for Game Creation

Attachments

Games can be sent through Telegraph ->game() method:

Telegraph::game('game_short_name')
        ->businessConnectionId('identifier') //identifier of the business connection
        ->messageThreadId('identifier') //identifier for the target message thread (topic) of the forum (forum supergroups only)
        ->messageEffectId('identifier')  //identifier of the message effect to be added to the message (private chats only)
        ->disableNotification() //sends notification with no sound
        ->protectContent() //protects the contents of the sent message from forwarding and saving
        ->allowPaidBroadcast() //pass True to ignore broadcasting limits. Check documentation for limits
        ->send();

Incoming Data

Game

  • ->title() game title
  • ->description() game description
  • ->text() (optional) brief description of the game or high scores included in the game message
  • ->photos() (optional) a collection of Photo holding data about the contained image resolutions
  • ->entities() (optional) a collection of Entity holding data about the contained entity
  • ->animation() (optional) an instance of Photo holding data about the contained animation
Suggest a change
Last updated 29 May 2026