This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathchat.update.json
49 lines (47 loc) · 1.67 KB
/
chat.update.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"desc": "Updates a message.",
"args": {
"ts": {
"required" : true,
"example" : "1405894322.002768",
"desc" : "Timestamp of the message to be updated."
},
"channel": {
"type" : "channel",
"required" : true,
"desc" : "Channel containing the message to be updated."
},
"text": {
"required" : true,
"example" : "Hello world",
"desc" : "New text for the message, using the [default formatting rules](/docs/formatting)."
},
"attachments": {
"example" : "[{\"pretext\": \"pre-hello\", \"text\": \"text-world\"}]",
"desc" : "Structured message attachments."
},
"parse": {
"required" : false,
"example" : "none",
"desc" : "Change how messages are treated. Defaults to `client`, unlike `chat.postMessage`. See [below](#formatting)."
},
"link_names": {
"required" : false,
"example" : "1",
"desc" : "Find and link channel names and usernames. Defaults to `none`. This parameter should be used in conjunction with `parse`. To set `link_names` to `1`, specify a `parse` mode of `full`."
},
"as_user": {
"required" : false,
"example" : "true",
"desc" : "Pass true to update the message as the authed user. [Bot users](/bot-users) in this context are considered authed users."
}
},
"errors": {
"message_not_found" : "No message exists with the requested timestamp.",
"cant_update_message" : "Authenticated user does not have permission to update this message.",
"channel_not_found" : "Value passed for `channel` was invalid.",
"edit_window_closed": "The message cannot be edited due to the team message edit settings",
"msg_too_long" : "Message text is too long",
"no_text" : "No message text provided"
}
}