Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sending voice messages #2738

Merged
merged 3 commits into from
Oct 4, 2024
Merged

Conversation

MinnDevelopment
Copy link
Member

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue: NaN

Description

This adds support for sending voice messages.

Example

channel.sendFiles(
  FileUpload.fromData(audioFile)
    .asVoiceMessage(MediaType.parse("audio/ogg"), waveform, 10.5)
).queue();

The waveform must be a low frequency sampling of the audio file, with at most 256 samples.

@MinnDevelopment MinnDevelopment merged commit 77ec412 into master Oct 4, 2024
1 check passed
@MinnDevelopment MinnDevelopment deleted the feature/voice-messages branch October 4, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants