You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/Message.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -363,7 +363,7 @@ Voice messages are messages with the `IS_VOICE_MESSAGE` flag. They have the foll
363
363
364
364
- They cannot be edited.
365
365
- Only a single audio attachment is allowed. No content, stickers, etc...
366
-
- The [attachment](#DOCS_RESOURCES_MESSAGE/attachment-object) has additional fields: `duration_secs` and `waveform`.
366
+
- The [attachment](#DOCS_RESOURCES_MESSAGE/attachment-object) has additional fields: `duration_secs` and `waveform`. The `Content-Type` of the attachment must begin with `audio/` to respect these fields.
367
367
368
368
The `waveform` is intended to be a preview of the entire voice message, with 1 byte per datapoint encoded in base64. Clients sample the recording at most
369
369
once per 100 milliseconds, but will downsample so that no more than 256 datapoints are in the waveform.
0 commit comments