A
A
aassww2021-04-22 20:50:10
Node.js
aassww, 2021-04-22 20:50:10

How to get information from JSON dictionary?

I have a telegram json array of buttons.

[
  [
    {
      "text": "F",
      "callback_data": "{\"type\":\"new-btn\",\"owner_id\":33,\"product_id\":\"mdgnwmavm\"}"
    }
  ],
  [
    {
      "text": "G",
      "callback_data": "{\"type\":\"new-btn\",\"owner_id\":11,\"product_id\":\"lgds35fjh\"}"
    }
  ]
]


How to take callback_data.product_id from a certain object?
node-telegram-bot-api library

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question