Update
An object of some event (update) related to the bot. Contains an identifier and one of the populated fields depending on the event type.
Update identifier, monotonically increasing. Later updates have a larger identifier
message object
Update object - message
ID of the workspace the message was sent in
AIQffAsGi8ID of the chat the message was sent to
w:AIQffAsGi8Message ID
gIQffAsGi8Message type - from a user or system
Possible values: [USER, SYSTEM]
USERID of the message this message replied to
gIQffAsGi8ID of the message author
gIQffAsGi8Date and time the message was created
2023-02-26T18:58:36.154+03:00Date and time the message was last modified
2024-02-26T18:58:36.154+03:00content objectrequired
Message content. At least one field is non-empty
Message in Markdown format
Hi!Array of file IDs attached to the message
[ADK5NyCqIK, BDK5NyCqIK]Conference ID
gIQffAsGi8systemEvent object
System message content. At least one field is non-empty
chatCreated object
System message: chat created
Membership ID of the chat creator
ADK5NyCqIKArray of Membership IDs of the created chat's members
[ADK5NyCqIK, BDK5NyCqIK]chatConvertedToPrivate object
System message: chat created
Membership ID of the initiator of converting the chat to private
ADK5NyCqIKmembersJoined object
System message: new members joined the chat
Membership ID of the member who invited the new members
ADK5NyCqIKArray of Membership IDs of the invited members
[ADK5NyCqIK, BDK5NyCqIK]membersLeft object
System message: members removed from the chat
Membership ID of the member who removed the members
ADK5NyCqIKArray of Membership IDs of the removed members
[ADK5NyCqIK, BDK5NyCqIK]chatRenamed object
System message: chat renamed
Membership ID of the member who renamed the chat
ADK5NyCqIKNew chat name
DocumentationforwardedContent object
Content of the forwarded message
ID of the workspace the message is forwarded from
AIQffAsGi8ID of the chat the message is forwarded from
w:AIQffAsGi8forwardedMessages object[]required
Array of forwarded messages. The messages will not include information about reactions, threads, pinning, or whether the message is a reply to another message
userEvent object
Personal notification content. At least one field is non-empty
conferenceMissed object
Personal notification about a missed conference
Conference identifier
ADK5NyCqIKMembership ID of the conference initiator
ADK5NyCqIKconferenceTarget objectrequired
Conference data. At least one field is non-empty
channelCall object
Conference in a chat
ID of the chat where the conference was initiated
w:AIQffAsGi8watercooler object
Personal call
Conference type. PUBLIC - public, other members can join without invites; PRIVATE - access by invite only
Possible values: [PRIVATE, PUBLIC]
PUBLICArray of Membership IDs of the conference participants
[ADK5NyCqIK, BDK5NyCqIK]Date and time the conference started
2023-02-26T18:58:36.154+03:00conferenceDeclined object
Personal notification about a declined conference
Conference identifier
ADK5NyCqIKMembership ID of the conference initiator
ADK5NyCqIKconferenceTarget objectrequired
Conference data. At least one field is non-empty
channelCall object
Conference in a chat
ID of the chat where the conference was initiated
w:AIQffAsGi8watercooler object
Personal call
Conference type. PUBLIC - public, other members can join without invites; PRIVATE - access by invite only
Possible values: [PRIVATE, PUBLIC]
PUBLICArray of Membership IDs of the conference participants
[ADK5NyCqIK, BDK5NyCqIK]Date and time the conference started
2023-02-26T18:58:36.154+03:00conferenceDirectInvite object
Personal notification about a direct conference invite
Conference identifier
ADK5NyCqIKMembership ID of the conference initiator
ADK5NyCqIKconferenceTarget objectrequired
Conference data. At least one field is non-empty
channelCall object
Conference in a chat
ID of the chat where the conference was initiated
w:AIQffAsGi8watercooler object
Personal call
Conference type. PUBLIC - public, other members can join without invites; PRIVATE - access by invite only
Possible values: [PRIVATE, PUBLIC]
PUBLICArray of Membership IDs of the conference participants
[ADK5NyCqIK, BDK5NyCqIK]Date and time the conference started
2023-02-26T18:58:36.154+03:00conferenceAnnounce object
Personal notification about the start of an available conference
Conference identifier
ADK5NyCqIKMembership ID of the conference initiator
ADK5NyCqIKconferenceTarget objectrequired
Conference data. At least one field is non-empty
channelCall object
Conference in a chat
ID of the chat where the conference was initiated
w:AIQffAsGi8watercooler object
Personal call
Conference type. PUBLIC - public, other members can join without invites; PRIVATE - access by invite only
Possible values: [PRIVATE, PUBLIC]
PUBLICArray of Membership IDs of the conference participants
[ADK5NyCqIK, BDK5NyCqIK]Date and time the conference started
2023-02-26T18:58:36.154+03:00chatMessageMention object
Personal notification about a mention in a chat
ID of the chat the message was sent to
w:AIQffAsGi8chatMessage objectrequired
Message object
Poll ID, if the message contains a poll
gIQffAsGi8reactions object[]
Array of reactions to the message
Emoji in the form :+1:
:heart:Number of reactions
5ID of the thread under this message
t:AIQffAsGi8Date and time the message was pinned
2024-02-26T18:58:36.154+03:00notification object
Update object - notification
ID of the workspace the notification relates to
AIQffAsGi8Notification creation time
2024-02-26T18:58:36.154+03:00memberJoinedEvent object
Notification that a new member has joined the workspace
Membership ID of the member who joined
ADK5NyCqIKmemberInvitedEvent object
Notification that a new member has been invited to the workspace
Membership ID of the invited member
ADK5NyCqIKmemberLeftEvent object
Notification that a member has left the workspace
Membership ID of the member who left the workspace
ADK5NyCqIKmemberChangedRoleEvent object
Notification that a member's role in the workspace has changed
Membership ID of the member with the new role
ADK5NyCqIKMember's new role
Possible values: [MEMBER, ADMIN, OWNER, GUEST, GUEST_CALLER]
ADMINchatCreatedEvent object
Notification that a new chat has been created in the workspace
ID of the created chat
w:AIQffAsGi8metadata objectrequired
Contains chat-type-specific information. One of the fields is populated depending on the chat type
personal object
Contains information about the personal chat
MembershipId of the other party
aIQffAsGiaworkspace object
Information about the workspace chat
Chat name
NewsWhether the chat is an announcement chat
trueChat type
Possible values: [PRIVATE, PUBLIC, GENERAL]
PUBLICWhether new workspace members are automatically added to the chat
trueChat description
Company newsNumber of members
5thread object
Thread information
ChatId of the parent chat where the parent message is located
w:aIQffAsGiaMessageId of the parent message the thread belongs to
bIQffAsGiaconference object
Conference chat information
Identifier of the conference the chat relates to
dIQffAsGiauserEvents object
Information about the chat with personal notifications
MembershipId of the owner
aIQffAsGiareactionToggledEvent object
Notification that a reaction to a message has been added/removed
ID of the chat containing the message with the reaction
w:AIQffAsGi8Message ID of the message with the reaction
bIQffAsGiaEmoji in the form :+1:
:heart:Membership ID of the member who added or removed the reaction
ADK5NyCqIKIf true, the reaction was added; otherwise it was removed
truemessageEditedEvent object
Notification that a message has been edited
ID of the chat containing the edited message
w:AIQffAsGi8Message ID of the edited message
bIQffAsGiamessageDeletedEvent object
Notification that a message has been deleted
ID of the chat that contained the deleted message
w:AIQffAsGi8Message ID of the deleted message
bIQffAsGiachatMemberJoinedEvent object
Notification of a new member in the chat
ID of the chat where the new member appeared
w:AIQffAsGi8Membership ID of the new chat member
ADK5NyCqIKchatMemberLeftEvent object
Notification that a member has left the chat
ID of the chat the member left
w:AIQffAsGi8Membership ID of the member who left the chat
ADK5NyCqIKchatMemberInvitedEvent object
Notification that a new member has been invited to the chat
ID of the chat the new member was invited to
w:AIQffAsGi8Membership ID of the invited member
ADK5NyCqIKMembership ID of the inviting member
ADK5NyCqIKchatMemberChangedRoleEvent object
Notification that a member's role in the chat has changed
ID of the chat that contained the deleted message
w:AIQffAsGi8Membership ID of the new chat member
ADK5NyCqIKMember's new role
Possible values: [MEMBER, ADMIN, OWNER]
ADMINchatArchivedEvent object
Notification that the chat has been archived
ID of the chat that was archived
w:AIQffAsGi8chatUnarchivedEvent object
Notification that the chat has been unarchived
ID of the chat that was unarchived
w:AIQffAsGi8pollVotedEvent object
Notification that poll votes have been updated
ID of the chat containing the poll
w:AIQffAsGi8Message ID of the poll message
bIQffAsGiaPoll ID
AIQffAsGi8summary objectrequired
Summary of the poll results
votes object[]required
Array of vote counts per answer option
Index of the answer option (starting from 0)
0Number of votes for this option
15Total number of voters
42Array of membershipId values of the first members who voted
Indices of the options the current user voted for
messageAction object
Update object - interactive message action (button press)
ID of the workspace the message belongs to
AIQffAsGi8ID of the chat the message belongs to
w:AIQffAsGi8Message ID
gIQffAsGi8pressedButtonCommand object
Command of the button that was pressed
Text on the button
Press the buttonCommand sent when the button is pressed
/button_pushedworkspaceInvite object
Update object - invite to a new workspace
ID of the workspace the bot was invited to
AIQffAsGi8Name of the member who sent the invite
John SmithEmail of the member who sent the invite
ivanov@example.org{
"updateId": 0,
"message": {
"workspaceId": "AIQffAsGi8",
"chatId": "w:AIQffAsGi8",
"messageId": "gIQffAsGi8",
"messageType": "USER",
"inReplyToMessageId": "gIQffAsGi8",
"membershipId": "gIQffAsGi8",
"createdAt": "2023-02-26T18:58:36.154+03:00",
"updatedAt": "2024-02-26T18:58:36.154+03:00",
"content": {
"text": "Hi!",
"fileIds": "[ADK5NyCqIK, BDK5NyCqIK]",
"conferenceId": "gIQffAsGi8",
"systemEvent": {
"chatCreated": {
"creatorMembershipId": "ADK5NyCqIK",
"membershipIds": "[ADK5NyCqIK, BDK5NyCqIK]"
},
"chatConvertedToPrivate": {
"initiatorMembershipId": "ADK5NyCqIK"
},
"membersJoined": {
"inviterMembershipId": "ADK5NyCqIK",
"membershipIds": "[ADK5NyCqIK, BDK5NyCqIK]"
},
"membersLeft": {
"kickerMembershipId": "ADK5NyCqIK",
"membershipIds": "[ADK5NyCqIK, BDK5NyCqIK]"
},
"chatRenamed": {
"initiatorMembershipId": "ADK5NyCqIK",
"newName": "Documentation"
}
},
"forwardedContent": {
"sourceWorkspaceId": "AIQffAsGi8",
"sourceChatId": "w:AIQffAsGi8",
"forwardedMessages": [
{}
]
},
"userEvent": {
"conferenceMissed": {
"conferenceId": "ADK5NyCqIK",
"inviterMemberId": "ADK5NyCqIK",
"conferenceTarget": {
"channelCall": {
"chatId": "w:AIQffAsGi8"
},
"watercooler": {
"scope": "PUBLIC",
"membershipIds": "[ADK5NyCqIK, BDK5NyCqIK]"
}
},
"startedAt": "2023-02-26T18:58:36.154+03:00"
},
"conferenceDeclined": {
"conferenceId": "ADK5NyCqIK",
"inviterMemberId": "ADK5NyCqIK",
"conferenceTarget": {
"channelCall": {
"chatId": "w:AIQffAsGi8"
},
"watercooler": {
"scope": "PUBLIC",
"membershipIds": "[ADK5NyCqIK, BDK5NyCqIK]"
}
},
"startedAt": "2023-02-26T18:58:36.154+03:00"
},
"conferenceDirectInvite": {
"conferenceId": "ADK5NyCqIK",
"inviterMemberId": "ADK5NyCqIK",
"conferenceTarget": {
"channelCall": {
"chatId": "w:AIQffAsGi8"
},
"watercooler": {
"scope": "PUBLIC",
"membershipIds": "[ADK5NyCqIK, BDK5NyCqIK]"
}
},
"startedAt": "2023-02-26T18:58:36.154+03:00"
},
"conferenceAnnounce": {
"conferenceId": "ADK5NyCqIK",
"inviterMemberId": "ADK5NyCqIK",
"conferenceTarget": {
"channelCall": {
"chatId": "w:AIQffAsGi8"
},
"watercooler": {
"scope": "PUBLIC",
"membershipIds": "[ADK5NyCqIK, BDK5NyCqIK]"
}
},
"startedAt": "2023-02-26T18:58:36.154+03:00"
},
"chatMessageMention": {
"chatId": "w:AIQffAsGi8",
"chatMessage": {}
}
},
"pollId": "gIQffAsGi8"
},
"reactions": [
{
"emoji": ":heart:",
"count": "5"
}
],
"threadId": "t:AIQffAsGi8",
"pinnedAt": "2024-02-26T18:58:36.154+03:00"
},
"notification": {
"workspaceId": "AIQffAsGi8",
"timestamp": "2024-02-26T18:58:36.154+03:00",
"memberJoinedEvent": {
"memberId": "ADK5NyCqIK"
},
"memberInvitedEvent": {
"memberId": "ADK5NyCqIK"
},
"memberLeftEvent": {
"memberId": "ADK5NyCqIK"
},
"memberChangedRoleEvent": {
"memberId": "ADK5NyCqIK",
"newRole": "ADMIN"
},
"chatCreatedEvent": {
"chatId": "w:AIQffAsGi8",
"metadata": {
"personal": {
"otherMembershipId": "aIQffAsGia"
},
"workspace": {
"name": "News",
"announce": "true",
"chatType": "PUBLIC",
"autoJoinNewMembers": "true",
"description": "Company news",
"memberCount": "5"
},
"thread": {
"parentChatId": "w:aIQffAsGia",
"parentMessageId": "bIQffAsGia"
},
"conference": {
"conferenceId": "dIQffAsGia"
},
"userEvents": {
"owner": "aIQffAsGia"
}
}
},
"reactionToggledEvent": {
"chatId": "w:AIQffAsGi8",
"messageId": "bIQffAsGia",
"emoji": ":heart:",
"reactedBy": "ADK5NyCqIK",
"wasSet": "true"
},
"messageEditedEvent": {
"chatId": "w:AIQffAsGi8",
"messageId": "bIQffAsGia"
},
"messageDeletedEvent": {
"chatId": "w:AIQffAsGi8",
"messageId": "bIQffAsGia"
},
"chatMemberJoinedEvent": {
"chatId": "w:AIQffAsGi8",
"memberId": "ADK5NyCqIK"
},
"chatMemberLeftEvent": {
"chatId": "w:AIQffAsGi8",
"memberId": "ADK5NyCqIK"
},
"chatMemberInvitedEvent": {
"chatId": "w:AIQffAsGi8",
"memberId": "ADK5NyCqIK",
"inviterMemberId": "ADK5NyCqIK"
},
"chatMemberChangedRoleEvent": {
"chatId": "w:AIQffAsGi8",
"memberId": "ADK5NyCqIK",
"newRole": "ADMIN"
},
"chatArchivedEvent": {
"chatId": "w:AIQffAsGi8"
},
"chatUnarchivedEvent": {
"chatId": "w:AIQffAsGi8"
},
"pollVotedEvent": {
"chatId": "w:AIQffAsGi8",
"messageId": "bIQffAsGia",
"pollId": "AIQffAsGi8",
"summary": {
"votes": [
{
"option": 0,
"votesCount": 15
}
],
"totalVoters": 42,
"firstVotedMemberIds": [
"string"
]
},
"myVote": [
0
]
}
},
"messageAction": {
"workspaceId": "AIQffAsGi8",
"chatId": "w:AIQffAsGi8",
"messageId": "gIQffAsGi8",
"pressedButtonCommand": {
"displayText": "Press the button",
"commandKey": "/button_pushed"
}
},
"workspaceInvite": {
"workspaceId": "AIQffAsGi8",
"inviterName": "John Smith",
"inviterEmail": "ivanov@example.org"
}
}