I want to request a GET request for a method - I create a url of this type -

https://api.telegram.org/bot <My Token> / getfullchat? chat_id = <Chat Id>

In return, I get

{"ok": false, "error_code": 404, "description": "Not Found: method not found"}

Did in accordance with the documentation -

getFullChat Telegram api

What am I doing wrong?

  • And if you save the register of the https://api.telegram.org/bot<МойТокен>/getFullChat?chat_id=<Ид Чата> method? - gil9red 1:49 pm
  • @ gil9red is the same. Maybe it's in the Chat ID, in the documentation I did not find the exact description of what format it should be, but I tried various options, from the ID that the API returns to me, to the direct links - Vadim Popov

1 answer 1

You first have to decide which API you want to work with. This is a method for the Telegram API and yes, it is not at all the same as the Telegram Bot API . Now, when we figured out where the legs grow from, it becomes obvious that it’s useless to get access to a method from another API and cannot be treated.

PS Read the description of the tags!

  • Understood, specifically I am interested in the native method of obtaining a list of group members, how to do it using the telegram API? I will repeat not bot API, I understand that the URL is not correct in the question. - Vadim Popov
  • read the documentation and see examples (including questions and answers here). Telegram API works completely differently - Anatol