MeInfo
Information about the bot, including the list of workspaces the bot is a member of and the bot's profile information
profile objectrequired
Member profile information
Account identifier
AIQffAsGi8Email address
i.ivanov@example.ruDate and time the account was created
2023-02-26T18:58:36.154+03:00Date and time the account was last modified
2024-02-26T18:58:36.154+03:00Display name
John A. SmithAccount type
Possible values: [REGULAR, BOT, GUEST]
REGULARaccountDetails object
Additional user data
Position
AnalystDepartment
B2BPhone number
88001234567Location
Possible values: [NOT_SET, OFFICE, HOME, VACATION]
OFFICEBrief information
Do not disturb after 8 PMStatus
On a business tripcustomFields object[]
Arbitrary custom profile fields defined by the user. The order of elements is significant.
Field name
Possible values: <= 64 characters
telegramField value
Possible values: <= 256 characters
@ivanovArray of workspaceId values the bot is a member of
[ADK5NyCqIK, BDK5NyCqIK]API version through which the bot receives updates via the getUpdates method or webhooks. Can be 1 or 2
1Settings apply only when receiving updates via API v2. Array of UpdateSetting values the bot receives. By default the bot receives the MESSAGE and WORKSPACE_INVITE types
Possible values: [MESSAGE, MESSAGE_ACTION, NOTIFICATION, WORKSPACE_INVITE]
The setting applies only when receiving updates via API v2. Sets whether the bot will automatically accept workspace invites. Default is false
falsefalsememberships object[]
Array of the bot's membershipId in each workspace. Allows the bot to learn its membershipId without sending messages
Workspace identifier
ADK5NyCqIKThe bot's member identifier (membershipId) in this workspace
YKcsFqDNXkscope objectrequired
Bot scope - defines which spaces the bot can operate in
Bot scope type
Possible values: [pub, org, ws]
orgOrganization identifier (required for type=ORG)
AIQffAsGi8Workspace identifier (required for type=WS)
BIQffAsGi9{
"profile": {
"accountId": "AIQffAsGi8",
"email": "i.ivanov@example.ru",
"createdAt": "2023-02-26T18:58:36.154+03:00",
"updatedAt": "2024-02-26T18:58:36.154+03:00",
"fullName": "John A. Smith",
"accountType": "REGULAR",
"accountDetails": {
"position": "Analyst",
"department": "B2B",
"phoneNumber": "88001234567",
"location": "OFFICE",
"bio": "Do not disturb after 8 PM",
"status": "On a business trip",
"customFields": [
{
"key": "telegram",
"value": "@ivanov"
}
]
}
},
"workspaces": "[ADK5NyCqIK, BDK5NyCqIK]",
"updateApiVersion": "1",
"updateSettings": [
"MESSAGE"
],
"autoAcceptWorkspaceInvites": "false",
"memberships": [
{
"workspaceId": "ADK5NyCqIK",
"membershipId": "YKcsFqDNXk"
}
],
"scope": {
"type": "org",
"organizationId": "AIQffAsGi8",
"workspaceId": "BIQffAsGi9"
}
}