fix: unable to send audio messages on Telegram (#4493)

- Changed the lib used to record the audio (videojs-record). 
- Changed the audio recording format to .ogg, this will keep compatibility with sending to channels, Telegram, Whatsapp, Web Widget and API.
- Changed the visualization of recording waves, it is now using bars, the same format used by applications (Whatsapp and Telegram)


Fixes: #4115
This commit is contained in:
giquieu
2022-05-02 04:44:04 -03:00
committed by GitHub
parent c1cc94e37c
commit b3c8c83830
7 changed files with 184 additions and 175 deletions

View File

@@ -90,6 +90,8 @@ class Channel::Telegram < ApplicationRecord
telegram_attachment = {}
case attachment[:file_type]
when 'audio'
telegram_attachment[:type] = 'audio'
when 'image'
telegram_attachment[:type] = 'photo'
when 'file'