<?php
require_once 'config.php';
require_once 'apk-signer.php';

$signer = new APKSigner($BOT_TOKEN);

// Test with a small file
$testFile = __DIR__ . '/test.txt';
file_put_contents($testFile, 'This is a test file for upload verification.');

$result = $signer->sendDocument(5333366770, $testFile, 'Test file upload');
echo $result ? 'Upload successful!' : 'Upload failed!';

unlink($testFile); // Clean up
?>