Upstream-Sync
This commit is contained in:
commit
0a6cc47379
@ -41,9 +41,9 @@ function media:action(msg, config, matches)
|
|||||||
if ext == 'gif' then
|
if ext == 'gif' then
|
||||||
result = utilities.send_document(receiver, file, nil, msg.message_id)
|
result = utilities.send_document(receiver, file, nil, msg.message_id)
|
||||||
elseif ext == 'ogg' then
|
elseif ext == 'ogg' then
|
||||||
result = utilities.send_voice(receiver, file, nil, msg.message_id)
|
result = utilities.send_voice(receiver, file, msg.message_id)
|
||||||
elseif mime_type == 'audio' then
|
elseif mime_type == 'audio' then
|
||||||
result = utilities.send_audio(receiver, file, nil, msg.message_id)
|
result = utilities.send_audio(receiver, file, msg.message_id)
|
||||||
elseif mime_type == 'video' then
|
elseif mime_type == 'video' then
|
||||||
result = utilities.send_video(receiver, file, nil, msg.message_id)
|
result = utilities.send_video(receiver, file, nil, msg.message_id)
|
||||||
else
|
else
|
||||||
|
@ -198,7 +198,7 @@ end
|
|||||||
|
|
||||||
-- NOTE: Voice messages are .ogg files encoded with OPUS
|
-- NOTE: Voice messages are .ogg files encoded with OPUS
|
||||||
-- https://core.telegram.org/bots/api#sendvoice
|
-- https://core.telegram.org/bots/api#sendvoice
|
||||||
function utilities.send_voice(chat_id, file, text, reply_to_message_id, duration)
|
function utilities.send_voice(chat_id, file, reply_to_message_id, duration)
|
||||||
if not file then return false end
|
if not file then return false end
|
||||||
local output = bindings.request(
|
local output = bindings.request(
|
||||||
'sendVoice',
|
'sendVoice',
|
||||||
|
Reference in New Issue
Block a user