🤖 Telegram Bot - Debug Mode

Test příkazu: /rbtc (en)

❌ <b>Currency BTC not found</b> Available currencies: USD, BCHN, IOT

🔗 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ů: 12

🔍 Detail každého záznamu:

Entry 1:

Raw timestamp: 10215450685 (ms)

Converted to seconds: 10215450.685

Date: 1970-04-29 05:37:30

Currency: IOT

Amount: 18.81492153

Description: Margin Funding Payment on wallet funding

Entry 2:

Raw timestamp: 10215445553 (ms)

Converted to seconds: 10215445.553

Date: 1970-04-29 05:37:25

Currency: BCHN

Amount: 0.00995388

Description: Margin Funding Payment on wallet funding

Entry 3:

Raw timestamp: 10215441234 (ms)

Converted to seconds: 10215441.234

Date: 1970-04-29 05:37:21

Currency: USD

Amount: 6731.35061257

Description: Margin Funding Payment on wallet funding

Entry 4:

Raw timestamp: 10213722377 (ms)

Converted to seconds: 10213722.377

Date: 1970-04-29 05:08:42

Currency: BCHN

Amount: 0.00982401

Description: Margin Funding Payment on wallet funding

Entry 5:

Raw timestamp: 10213716074 (ms)

Converted to seconds: 10213716.074

Date: 1970-04-29 05:08:36

Currency: USD

Amount: 6664.96838698

Description: Margin Funding Payment on wallet funding

Entry 6:

Raw timestamp: 10213711972 (ms)

Converted to seconds: 10213711.972

Date: 1970-04-29 05:08:31

Currency: IOT

Amount: 19.61229944

Description: Margin Funding Payment on wallet funding

Entry 7:

Raw timestamp: 10211736239 (ms)

Converted to seconds: 10211736.239

Date: 1970-04-29 04:35:36

Currency: BCHN

Amount: 0.00983292

Description: Margin Funding Payment on wallet funding

Entry 8:

Raw timestamp: 10211731662 (ms)

Converted to seconds: 10211731.662

Date: 1970-04-29 04:35:31

Currency: IOT

Amount: 28.95101904

Description: Margin Funding Payment on wallet funding

Entry 9:

Raw timestamp: 10211726811 (ms)

Converted to seconds: 10211726.811

Date: 1970-04-29 04:35:26

Currency: USD

Amount: 6695.28767426

Description: Margin Funding Payment on wallet funding

🕐 Kontrola současného času

Současný timestamp: 1769494087

Současné datum: 2026-01-27 06:08:07

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