<?php
/**
 * Webhook Example
 * This example shows how to use RubikaPhp with a webhook
 */

require_once(__DIR__ . '/../lib/autoload.php');

use RubikaPhp\Core\Bot;
use RubikaPhp\Filters\Filters;
use RubikaPhp\Utils\Markdown;

// Initialize the bot
$bot = new Bot('BAEABI0ZIKJDJHWQITOKJMCJBIURFDZBKJZQDDRURIRHLLUZHNUCWIXPFRJYODTQ');

// Setup webhook (run this once to configure)
// $bot->setEndpoint('https://yourdomain.com/webhook.php');

// Define handlers
$bot->chatId('c0DXSpX0317f1b083ad6412ab2faf8ae')
    ->text('Hyperlink("[text](link)")')->parseMode("markdown")
    ->sendMessage();
