mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-22 03:22:08 +00:00
SendMessage method add recipient
This commit is contained in:
@@ -10,10 +10,14 @@ namespace BushlanovDev\MaxMessengerBot\Models;
|
||||
final readonly class Message extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @param int $timestamp Unix-time when message was created.
|
||||
* @param MessageBody $body Body of created message. Text + attachments.
|
||||
* @param Recipient $recipient Message recipient. Could be user or chat.
|
||||
*/
|
||||
public function __construct(
|
||||
public int $timestamp,
|
||||
public MessageBody $body,
|
||||
public Recipient $recipient,
|
||||
) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user