Media: send_voice für OGG

This commit is contained in:
Andreas Bielawski 2016-08-01 16:38:52 +02:00
parent 269cca161a
commit 293e5ba589

View File

@ -42,6 +42,9 @@ function media:action(msg)
if ext == 'gif' then if ext == 'gif' then
print('send gif') print('send gif')
result = utilities.send_document(self, receiver, file, nil, msg.message_id) result = utilities.send_document(self, receiver, file, nil, msg.message_id)
elseif ext == 'ogg' then
print('send ogg')
result = utilities.send_voice(self, receiver, file, nil, msg.message_id)
elseif mime_type == 'audio' then elseif mime_type == 'audio' then
print('send_audio') print('send_audio')
result = utilities.send_audio(self, receiver, file, nil, msg.message_id) result = utilities.send_audio(self, receiver, file, nil, msg.message_id)