TelegramBots / book

Documentation for Telegram Bots Projects
https://telegrambots.github.io/book
81 stars 31 forks source link

broken voice message spectogram #84

Closed magrega closed 1 year ago

magrega commented 1 year ago

I send a voice message with API but the spectrogram is flat. The audio file is .ogg and OPUS library.

` await using Stream stream = System.IO.File.OpenRead(@"C:\Users\magrega\YandexDisk\проги\audio.ogg");

await client.SendVoiceAsync( chatId: message.Chat.Id, voice: stream!, duration: 1097);`

image

karb0f0s commented 1 year ago

Please follow issue template If you want to chat, feel free to join our group.