Use this method to get a bot’s profile. On success, myProfile is returned.
Field | Type | Required | Description |
method | String | Yes | "getMyProfiles" |
Requests
json{ "method": "getMyProfiles" }
java// The object will be received in the onReceive callback. else if(text.equals("getMyProfile")){ api.getMyProfiles(); }
javascriptapi.getMyProfiles();
pythonnapi.get_my_profiles()
Responses
User Started Bot
json{ "method": "userStartedBot", "user": { "id": "90089584801498185" } }
User Joined Bot
json{ "method": "userJoinedBot", "user": { "id": "90089584801498185" } }
User Stopped Bot
json{ "method": "userStoppedBot", "user": { "id": "90089584801498185" } }
User Left Bot
json{ "method": "userLeftBot", "user": { "id": "90089584801498185" } }
My Profile
json{ "method": "myProfile", "user": { "profile": "Other", "name": "Hhhh", "id": "90091787142397498", "version": "0Sm7", "status": "Ghsjs" } }