mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-22 21:32:06 +00:00
Added sendMessage method
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace BushlanovDev\MaxMessengerBot\Models;
|
||||
|
||||
/**
|
||||
* Body of created message. Text + attachments.
|
||||
*/
|
||||
final readonly class MessageBody extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @param string $mid Unique identifier of message.
|
||||
* @param int $seq Sequence identifier of message in chat.
|
||||
* @param string|null $text Message text.
|
||||
*/
|
||||
public function __construct(
|
||||
public string $mid,
|
||||
public int $seq,
|
||||
public ?string $text,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user