Link Search Menu Expand Document

danog\MadelineProto\EventHandler\Calls\GroupCallMessage

Back to index

Author: Daniil Gentili daniil@daniil.it

An in-call message or reaction » sent in

a group call: a video chat, a livestream, a live story, or (end-to-end encrypted) a conference call.

A reaction is a message whose text is a single emoji (with, for a custom emoji, one custom emoji entity spanning it), see {@see self::isReaction()}. In a live story, a message may carry a Telegram Stars donation ({@see self::$paidStars}); a donation with an empty text is a standalone donation.

Properties

  • $callId: int ID of the group call the message was sent in.
  • $id: int ID of the message in the call, for an end-to-end encrypted conference message (they have none).
  • $fromId: int Bot API ID of the sender.
  • $date: int When the message was sent.
  • $message: danog\MadelineProto\EventHandler\Message\Entities\TextWithEntities The text of the message (or the emoji of a reaction) with its entities.
  • $paidStars: ?int Telegram Stars donated with this live story message, if any.
  • $fromAdmin: bool Whether the sender is an admin of the call.
  • $encrypted: bool Whether this message was end-to-end encrypted (sent in a conference call).

Method list:

Methods:

isReaction(): bool

Whether this is a reaction rather than a text message: a single (possibly custom) emoji.

isDonation(): bool

Whether this is a standalone live story donation (Telegram Stars with no text).

delete(bool $reportSpam = false): void

Delete this message from the call (our own, or anyone’s if we are an admin).

Parameters:

  • $reportSpam: bool Also report it as spam (admins only).

Generated by danog/phpdoc