Added getChats & getChatByLink & deleteChat & sendAction

This commit is contained in:
Alex
2025-07-27 09:13:55 +03:00
parent f195f9868f
commit 67ce2958a6
8 changed files with 419 additions and 4 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
namespace BushlanovDev\MaxMessengerBot\Models;
use BushlanovDev\MaxMessengerBot\Attributes\ArrayOf;
/**
* Represents a paginated list of chats.
*/
final readonly class ChatList extends AbstractModel
{
/**
* @param Chat[] $chats List of requested chats.
* @param int|null $marker Reference to the next page of requested chats. Can be null if it's the last page.
*/
public function __construct(
#[ArrayOf(Chat::class)]
public array $chats,
public ?int $marker,
) {
}
}