I hereby claim:
- I am flazepe on github.
- I am flazepe (https://keybase.io/flazepe) on keybase.
- I have a public key ASAEo7DbQZ1svuvmz8AuQsHogzjrQyGoTft4K--MO6NKOwo
To claim this, I am signing this object:
// | |
// | |
// | |
// Bot Configuration | |
// | |
// | |
// | |
const beta = 1; |
I hereby claim:
To claim this, I am signing this object:
import { readFileSync, statSync } from "fs"; | |
import { getAudioDurationInSeconds } from "get-audio-duration"; | |
const botToken = "Njc1NTM5NTEyOTEwMTUxNjkx.GCAq4j.VaRQAFI6hBrgvcVPi_wY4zCzT4G-2D60h5mw7g", | |
channelID = "732171142344736818", | |
audioPath = "path/to/audio/file"; | |
const body = new FormData(); | |
body.append("files[0]", new Blob([readFileSync(audioPath)]), "voice-message.ogg"); |