N
N
nluparev2018-05-06 13:31:38
Telegram
nluparev, 2018-05-06 13:31:38

How to request a channel avatar in telegram?

there is a certain channel whose data is received via getChat for the bot API. The following data is coming

{
  "ok": true,
  "result": {
    "id": -some_id,
    "title": "some_title,
    "type": "group",
    "all_members_are_administrators": true,
    "photo": {
      "small_file_id": "AQADAgATSgOcDgAEBM8B5kE2JQXNHwQAAQI",
      "big_file_id": "AQADAgATSgOcDgAE0WQLVY44V7vPHwQAAQI"
    }
  }
}

As you can see there is a nested photo object which contains photo IDs. You need to download one of them. I don't understand how this can be done. I did not find any API for this or I was looking in the wrong place

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