Bot
Get contacts
Changed onReturns the people and bots the authenticated bot works with, plus those of the person it acts for: its owner, bots the owner manages, people in shared chats and spaces, and bots it may use. Each contact says why it is one and, for bots, what the authenticated bot may do with it.
get/bot{token}/getContacts
Request
- Base URLhttps://api.inline.chat
- Authnone required
Path parameters
tokenstring required
Required bot token included in the URL path.
Query parameters
querystring
Bot method parameter.
kind'all' | 'people' | 'bots'
Bot method parameter.
limitstring
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
BotGetContactsSuccess
Example response
{
"result": {
"contacts": [
{
"user": {
"id": 284901,
"is_bot": true,
"username": "deploy_bot",
"first_name": "Deploy Bot"
}
}
]
}
}Changes
- info
endpoint added
- info