<?php
namespace EasyChat\Library\Messenger;

interface MessengerProviderInterface {
    public function providerCode(): string;
    public function getBotInfo(string $token): array;
    public function syncWebhook(array $channel, string $token, string $webhook_url, string $secret): array;
    public function parseWebhook(array $payload): array;
    public function sendMessage(string $token, string $external_user_id, string $text, array $attachments = [], array $options = []): array;
}
