<?php
/**
 * Global configuration for the Telegram price bot.
 *
 * Fill in your real bot token, domains, and optional API keys
 * before deploying to production.
 */

return [
    'BOT_TOKEN' => '8212151431:AAHtsEsFiIlXHT0lpzvpqZRJIXGbrX3F8Og',
    'TELEGRAM_API' => 'https://api.telegram.org/bot',

    // TronGrid + pricing sources
    'TRON' => [
        'tx_endpoint' => 'https://api.trongrid.io/wallet/gettransactionbyid',
        'info_endpoint' => 'https://api.trongrid.io/wallet/gettransactioninfobyid',
        'price_endpoint' => 'https://api.coingecko.com/api/v3/simple/price?ids=tron&vs_currencies=usd',
        'chart_ticker_url' => 'https://api.binance.com/api/v3/ticker/24hr?symbol=TRXUSDT',
        'chart_klines_url' => 'https://api.binance.com/api/v3/klines?symbol=TRXUSDT&interval=30m&limit=48',
    ],

    // TON blockchain provider
    'TON' => [
        'api_base' => 'https://tonapi.io/v2/blockchain/transactions',
        'api_key' => 'AGBT5UR2QRKSDNIAAAABWES33CV6WN6ASHVMV7PKF4YMHL4WYTIYYGBEQEZM3D2DQV2TBBY',
    ],

    // Fiat pricing sources
    'PRICE' => [
        'ton_price_url' => 'https://api.coingecko.com/api/v3/simple/price?ids=the-open-network&vs_currencies=usd&include_24hr_change=true',
        'ton_chart_url' => 'https://api.coingecko.com/api/v3/coins/the-open-network/market_chart?vs_currency=usd&days=2&interval=hourly',
    ],

    'ANTISPAM' => [
        'window_seconds' => 4,
        'max_hits' => 3,
    ],

    'LOG_FILE' => __DIR__ . '/logs/bot.log',
    'CACHE_FILE' => __DIR__ . '/storage/cache.json',
    'ERROR_LOG_FILE' => __DIR__ . '/logs/errorlog.txt',
];

