Bot
Get an Agent
Returns one globally identified Agent owned by the authenticated bot.
get/bot/getAgent
Query parameters
agent_idstring required
A signed decimal integer string within JavaScript's safe-integer range
Example:42
Bot method parameter.
Headers
authorizationstring required
Required bot token using the Bearer scheme.
Response
BotGetAgentSuccess
Example response
{
"result": {
"bot": {
"id": 284901,
"is_bot": true,
"username": "deploy_bot",
"first_name": "Deploy Bot"
}
}
}