You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/app/Services/Telegram/AdministratorTelegramDelive...

19 lines
518 B
PHP

<?php
namespace App\Services\Telegram;
/** Narrow one-shot channel contract for durable business delivery ledgers. */
interface AdministratorTelegramDeliveryChannel
{
public function eligibleAdministrator(int $administratorId): bool;
public function currentDestination(): ?AdministratorTelegramDestination;
/** @param array<string,int|string|bool> $options */
public function send(
AdministratorTelegramDestination $expected,
string $text,
array $options = []
): int;
}