🤖 Telegram Bot - Debug Mode

🔗 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 1:

Raw timestamp: 10146524920 (ms)

Converted to seconds: 10146524.92

Date: 1970-04-28 10:28:44

Currency: USD

Amount: 6723.09495278

Description: Margin Funding Payment on wallet funding

Entry 2:

Raw timestamp: 10146524784 (ms)

Converted to seconds: 10146524.784

Date: 1970-04-28 10:28:44

Currency: BCHN

Amount: 0.01260177

Description: Margin Funding Payment on wallet funding

Entry 3:

Raw timestamp: 10145421948 (ms)

Converted to seconds: 10145421.948

Date: 1970-04-28 10:10:21

Currency: BCHN

Amount: 0.00906982

Description: Margin Funding Payment on wallet funding

Entry 4:

Raw timestamp: 10145418970 (ms)

Converted to seconds: 10145418.97

Date: 1970-04-28 10:10:18

Currency: USD

Amount: 6137.86330849

Description: Margin Funding Payment on wallet funding

Entry 5:

Raw timestamp: 10144605423 (ms)

Converted to seconds: 10144605.423

Date: 1970-04-28 09:56:45

Currency: BCHN

Amount: 0.00517691

Description: Margin Funding Payment on wallet funding

Entry 6:

Raw timestamp: 10144604215 (ms)

Converted to seconds: 10144604.215

Date: 1970-04-28 09:56:44

Currency: USD

Amount: 6373.46208775

Description: Margin Funding Payment on wallet funding

Entry 8:

Raw timestamp: 10143338693 (ms)

Converted to seconds: 10143338.693

Date: 1970-04-28 09:35:38

Currency: BCHN

Amount: 0.00485686

Description: Margin Funding Payment on wallet funding

Entry 9:

Raw timestamp: 10143332267 (ms)

Converted to seconds: 10143332.267

Date: 1970-04-28 09:35:32

Currency: USD

Amount: 6466.03188897

Description: Margin Funding Payment on wallet funding

🕐 Kontrola současného času

Současný timestamp: 1765182026

Současné datum: 2025-12-08 08:20:26

🔍 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: