Skip to main content

Get Me

The getMe method is used to retrieve information about bot.

Request Format#

You need to send a POST request to:

https://yoai.yophone.com/api/pub/getMe

Request example#

curl -X POST https://yoai.yophone.com/api/pub/getMe \-H "Content-Type: application/json" \-H "X-YoAI-API-Key: your YoAI api key"

Success Response#

The API returns a JSON object indicating the success of the operation.

{  "code": 200,  "success": true,  "data": {    "id": "",    "username": "",    "ownerId":"",    "apiKey": "",    "pendingUpdatesCount": 0  }}

Failure Response#

The API returns a JSON object indicating the success of the operation.

{  "code": 200,  "success": false,  "message": "not found"}