Use this method to set the bot's profile. On success, myProfile is returned.
Field | Type | Required | Description |
method | String | Yes | "setMyProfile" |
user | Yes | Bot profile (user object). |
Requests
json{ "method": "setMyProfile", "user": { "profile": "Other", "status": "Hello", "photo": { "id": "95d4438d7773be38db78.jpg" } } }
javaelse if(text.equals("setMyProfile")){ JSONObject obj = new JSONObject(); obj.put("name", "updated Bot Name"); api.setMyProifle(new User(obj)); }
javascriptlet user = new User(); user.profile = "other"; user.status = "I am set My profile Bot 2 "; let photo = new Photo(); photo.id = "e801b7277dbd921376f26b13aeadf0ee4b49950a66641f2761863a823e035845.jpg"; api.setMyProifle(user);
pythonuser = User() user.profile = "other" user.status = "Hello From Server" napi.set_my_profile(user)
pythonuser = User() user.profile = "other" user.status = "Hello From Server" napi.set_my_profile(user)
Response
My Profile
json{ "method": "myProfile", "user": { "profile": "Other", "name": "Hhhh", "id": "90091787142397498", "version": "0Sm7", "status": "Ghsjs" } }