mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-26 04:27:05 +00:00
Added getChats & getChatByLink & deleteChat & sendAction
This commit is contained in:
@@ -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,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user