Bot
Get an Agent
Changed onReturns one globally identified Agent owned by the authenticated bot.
get/bot{token}/getAgent
Request
- Base URLhttps://api.inline.chat
- Authnone required
Path parameters
tokenstring required
Required bot token included in the URL path.
Query parameters
agent_idstring required
A signed decimal integer string within JavaScript's safe-integer range
Example:42
Bot method parameter.
Headers
authorizationstring
Optional bot token using the Bearer scheme. When supplied, it takes precedence over the token in the URL.
Response
BotGetAgentSuccess
Example response
{
"result": {
"bot": {
"id": 284901,
"is_bot": true,
"username": "deploy_bot",
"first_name": "Deploy Bot"
}
}
}Changes
- info
added the optional property
//to the response with the status
- info
- info
added the non-success response with the status
- info