🤖 Telegram Bot - Debug Mode

Test příkazu: /help (en)

🤖 <b>BITFINEX LENDING BOT</b> 📋 <b>Available commands:</b> /rates - 📊 Max rates - all currencies /r - 📊 Same as /rates /r{CUR} - 💰 Rates for specific currency (e.g. /rusd, /rbtc) /status - 📈 Quick overview of loans /loans - 💸 List of active loans /offers - 📋 List of active offers /help - ❓ This command list /english - 🇺🇸 Switch to English /german - 🇦🇹 Switch to Vorarlberg German /czech - 🇨🇿 Switch to Czech 🔔 <i>Bot also automatically sends change notifications</i> ⏰ <b>Period explanation:</b> • 1h = last hour • 24h = last day • 72h = last 3 days • 168h = last week

🔗 Test odkazy:

🇨🇿 Česky:

📊 Test /rates - Max rates všechny měny

📊 Test /r - Stejné jako /rates

💰 Test /rusd - Rates pouze USD

💰 Test /rbtc - Rates pouze BTC

💰 Test /rust - Rates pouze UST

📈 Test /status - Rychlý přehled

💰 Test /yield - Earnings aktuálního uživatele

💰 Test /yieldall - Earnings všech uživatelů

❓ Test /help - Nápověda

🇺🇸 English:

📊 Test /rates - Max rates all currencies

📊 Test /r - Same as /rates

💰 Test /rusd - USD rates only

💰 Test /rbtc - BTC rates only

💰 Test /rust - UST rates only

📈 Test /status - Quick overview

💰 Test /yield - Current user earnings

💰 Test /yieldall - All users earnings

❓ Test /help - Help

📋 Nastavení Webhook

Pro aktivaci Telegram příkazů nastav webhook:

curl "https://api.telegram.org/bot7381636391:AAF4DgGo1vUfmN9gp_36mu3FNL8DitJTFOA/setWebhook?url=https://orb.claudev.cz/bitfinexbot/telegram_bot.php"

📊 Funkce:

🔍 Debug: Problém s timestampy v UST earnings

📊 Analýza raw dat z API

Celkem záznamů: 15

🔍 Detail každého záznamu:

Entry 0:

Raw timestamp: 10495942577 (ms)

Converted to seconds: 10495942.577

Date: 1970-05-02 11:32:22

Currency: IOT

Amount: 918.33836105

Description: Margin Funding Payment on wallet funding

Entry 1:

Raw timestamp: 10494877942 (ms)

Converted to seconds: 10494877.942

Date: 1970-05-02 11:14:37

Currency: IOT

Amount: 983.02008773

Description: Margin Funding Payment on wallet funding

Entry 3:

Raw timestamp: 10493802992 (ms)

Converted to seconds: 10493802.992

Date: 1970-05-02 10:56:42

Currency: IOT

Amount: 528.19382313

Description: Margin Funding Payment on wallet funding

Entry 4:

Raw timestamp: 10492885184 (ms)

Converted to seconds: 10492885.184

Date: 1970-05-02 10:41:25

Currency: IOT

Amount: 997.07592448

Description: Margin Funding Payment on wallet funding

Entry 5:

Raw timestamp: 10491973991 (ms)

Converted to seconds: 10491973.991

Date: 1970-05-02 10:26:13

Currency: IOT

Amount: 924.10640735

Description: Margin Funding Payment on wallet funding

Entry 6:

Raw timestamp: 10491049914 (ms)

Converted to seconds: 10491049.914

Date: 1970-05-02 10:10:49

Currency: IOT

Amount: 940.21642201

Description: Margin Funding Payment on wallet funding

Entry 7:

Raw timestamp: 10490435421 (ms)

Converted to seconds: 10490435.421

Date: 1970-05-02 10:00:35

Currency: IOT

Amount: 490.28748815

Description: Margin Funding Payment on wallet funding

Entry 8:

Raw timestamp: 10489568014 (ms)

Converted to seconds: 10489568.014

Date: 1970-05-02 09:46:08

Currency: IOT

Amount: 951.50729265

Description: Margin Funding Payment on wallet funding

Entry 9:

Raw timestamp: 10488608920 (ms)

Converted to seconds: 10488608.92

Date: 1970-05-02 09:30:08

Currency: IOT

Amount: 945.82098701

Description: Margin Funding Payment on wallet funding

🕐 Kontrola současného času

Současný timestamp: 1786135335

Současné datum: 2026-08-07 20:42:15

🔍 Test konkrétních UST earnings časových razítek

📋 Hypotéza

Zdá se, že UST earnings mají špatně nastavené timestampy v Bitfinex API.

Možné příčiny: