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.
21 lines
546 B
PHP
21 lines
546 B
PHP
<?php
|
|
|
|
namespace App\Services\Telegram;
|
|
|
|
interface AdministratorTelegramTransport
|
|
{
|
|
/**
|
|
* Perform exactly one Telegram sendMessage request and return its message id.
|
|
* Once invoked, every failure is reported as RemoteEffectUnknown because
|
|
* the caller cannot safely prove whether Telegram accepted the message.
|
|
*
|
|
* @param array<string, int|string|bool> $options
|
|
*/
|
|
public function sendMessage(
|
|
string $botToken,
|
|
string $chatId,
|
|
string $text,
|
|
array $options = []
|
|
): int;
|
|
}
|