novasamatech / telenova-web-app

Telenova is a brand new self-custodial Polkadot wallet that runs directly in Telegram providing you with a simple and clean user interface to manage your DOT, USDT, KSM tokens
https://t.me/telenova_app_bot
GNU General Public License v3.0
12 stars 0 forks source link

Can't create new account - Account id missing #234

Open stepanLav opened 1 month ago

stepanLav commented 1 month ago

Response:

{"error":"Account id missing to create the relation"}

https://github.com/novasamatech/wallet-bot-backend/blob/68abdf8afabd294d7dfd923a7d73f49decbc0a07/telegram_bot/app/services/web_app_api/web_app_api_service.py#L31-L32

curl 'https://api-tg-bot-stg.novasama.co/submit/wallet' \
  -H 'accept: */*' \
  -H 'accept-language: en,ru-RU;q=0.9,ru;q=0.8,en-US;q=0.7' \
  -H 'content-type: application/json' \
  -H 'origin: https://tg-bot-stg.novasama.co' \
  -H 'priority: u=1, i' \
  -H 'referer: https://tg-bot-stg.novasama.co/' \
  -H 'sec-ch-ua: "Android WebView";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \
  -H 'sec-ch-ua-mobile: ?1' \
  -H 'sec-ch-ua-platform: "Android"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-site' \
  -H 'user-agent: Mozilla/5.0 (Linux; Android 11; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.6668.82 Mobile Safari/537.36 Telegram-Android/11.2.3 (Wheatek BV8800; Android 11; SDK 30; AVERAGE)' \
  -H 'x-requested-with: org.telegram.messenger' \
  --data-raw '{"publicKey":"0x248d2a19c5215288230bf64f23ec929e1899a6979bb50d54595a9915dc474c63","userId":6178997904,"auth":"query_id=AAGQBkxwAgAAAJAGTHA9HBgd&user=%7B%22id%22%3A6178997904%2C%22first_name%22%3A%22Stepan%22%2C%22last_name%22%3A%22Test%22%2C%22language_code%22%3A%22ru%22%2C%22allows_write_to_pm%22%3Atrue%7D&auth_date=1729148347&hash=2cd85ddccdb0152163410c45d583fc7c4c6e34c2b123fd7d76c86c7b6f35def7"}'