Skip to content

Voice message support #10165

@mechanira

Description

@mechanira

Summary

Add support for sending audio as voice messages

What is the feature request for?

The core library

The Problem

I've been thinking of a way of sending audio as voice messages for my bots. Turns out it's technically possible to do that with the API currently, and the specifics of it are documented here: https://gist.github.com/HDR/7d5d4ce8bbe4b715d788a9bc9f99e02d

The Ideal Solution

To send a voice message you need to set the message flag to 8192 in the message data, have an audio file (only .ogg is supported) attachment with waveform data that's essentially just a base64 encoded byte array. Basically what I'm thinking is the message send methods could have a voice message parameter for passing a voice attachment object with all the data mentioned above.

The Current Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions