Added MessageCallbackUpdate & MessageEditedUpdate & MessageRemovedUpdate & BotAddedToChatUpdate

This commit is contained in:
Alex
2025-07-24 09:11:01 +03:00
parent 62c4b80fae
commit d5b950bcd9
14 changed files with 503 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
declare(strict_types=1);
namespace BushlanovDev\MaxMessengerBot\Models;
/**
* Object sent to bot when user presses a callback button.
*/
final readonly class Callback extends AbstractModel
{
/**
* @param int $timestamp Unix-time when user pressed the button.
* @param string $callbackId Identifier of the callback, unique for the message.
* @param string $payload Payload from the pressed button.
* @param User $user User who pressed the button.
*/
public function __construct(
public int $timestamp,
public string $callbackId,
public string $payload,
public User $user,
) {
}
}