🤖 Telegram Bot - Debug Mode

Test příkazu: /help (cs)

🤖 <b>BITFINEX LENDING BOT</b> 📋 <b>Dostupné příkazy:</b> /rates - 📊 Max rates - všechny měny /r - 📊 Stejné jako /rates /r{CUR} - 💰 Rates pro konkrétní měnu (např. /rusd, /rbtc) /status - 📈 Rychlý přehled půjček /loans - 💸 Seznam aktivních půjček /offers - 📋 Seznam aktivních nabídek /help - ❓ Tento seznam příkazů /english - 🇺🇸 Přepnout do angličtiny /german - 🇦🇹 Přepnout do němčiny /czech - 🇨🇿 Přepnout do češtiny 🔔 <i>Bot také automaticky posílá notifikace o změnách</i> ⏰ <b>Vysvětlení období:</b> • 1h = poslední hodina • 24h = poslední den • 72h = poslední 3 dny • 168h = poslední týden

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

🔍 Detail každého záznamu:

Entry 0:

Raw timestamp: 10343968456 (ms)

Converted to seconds: 10343968.456

Date: 1970-04-30 17:19:28

Currency: UST

Amount: 102820.49215944

Description: Transfer of 102820.49215944 UST from wallet Exchange to Deposit on wallet funding

🎯 UST EARNINGS! Dní zpět: 20434.2

Entry 3:

Raw timestamp: 10342821212 (ms)

Converted to seconds: 10342821.212

Date: 1970-04-30 17:00:21

Currency: USD

Amount: 2113.24880391

Description: Margin Funding Payment on wallet funding

Entry 4:

Raw timestamp: 10342308745 (ms)

Converted to seconds: 10342308.745

Date: 1970-04-30 16:51:48

Currency: USD

Amount: 90474.08505934

Description: Transfer of 90474.08505934 USD from wallet Exchange to Deposit on wallet funding

🕐 Kontrola současného času

Současný timestamp: 1775861783

Současné datum: 2026-04-10 22:56:23

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

Nalezen UST earnings:

Raw timestamp z API: 10343968456

Interpretace 1 (ms -> s): 1970-04-30 17:19:28

Interpretace 2 (direct seconds): 2297-10-14 20:34:16

Interpretace 3 (microseconds -> s): 1970-01-01 02:52:23

Měl by být asi: 2026-04-03 22:56:23 (timestamp: 1775256983)

Rozdíl: -1764913014544 ms

📋 Hypotéza

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

Možné příčiny: