getMe
Methods for @BotMembersRobot: checks go through your bot connected to the service. code - the bot code issued by @BotMembersRobot.
GET
/getme/{code}
Same as getMe in the Telegram Bot API: data of the bot connected to @BotMembersRobot. No payment needed. | Parameter | Required | What it is |
|---|---|---|
| code | yes | Bot code from @BotMembersRobot |
bash
curl https://api.botstat.io/getme/BOT_CODE
Response
User object from the Telegram Bot API, as is:
json
{
"id": 7000000000,
"is_bot": true,
"first_name": "Example Bot",
"username": "examplebot",
"can_join_groups": true,
"can_read_all_group_messages": false,
"supports_inline_queries": false
}
Wrong code - status_code 401, "Unauthorized in members".
Errors come with HTTP 200Check ok and status_code in the response body. If Telegram does not respond within 2 seconds, the request is retried up to 5 times, then status_code 504 comes back.
Was this article helpful?
Didn't find the answer? Contact support