This commit is contained in:
Andrea Maria Piana 2020-06-24 08:40:17 +02:00
parent a2f273e616
commit bdb2708a39
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 2 additions and 0 deletions

View File

@ -1400,6 +1400,8 @@ func (m *Messenger) SendChatMessage(ctx context.Context, message *Message) (*Mes
if audioMessage == nil {
return nil, errors.New("no audio has been passed")
}
m.logger.Info("Audio", zap.Any("audio", audioMessage))
m.logger.Info("Duration", zap.Uint64("duration", audioMessage.DurationMs))
audioMessage.Payload = payload
audioMessage.Type = audio.Type(payload)
message.Payload = &protobuf.ChatMessage_Audio{Audio: audioMessage}