Zeige Videonachrichten an und lade sie
This commit is contained in:
parent
4f11455bc5
commit
88988786fc
@ -310,6 +310,8 @@ function bot:print_msg(msg)
|
|||||||
filetext = '[Foto] '
|
filetext = '[Foto] '
|
||||||
elseif msg.video then
|
elseif msg.video then
|
||||||
filetext = '[Video] '
|
filetext = '[Video] '
|
||||||
|
elseif msg.video_note then
|
||||||
|
filetext = '[Videonachricht] ('..msg.video_note.duration..' Sekunden)'
|
||||||
elseif msg.sticker then
|
elseif msg.sticker then
|
||||||
filetext = '[Sticker] '
|
filetext = '[Sticker] '
|
||||||
elseif msg.voice then
|
elseif msg.voice then
|
||||||
|
@ -39,6 +39,9 @@ function media_download:pre_process(msg, config)
|
|||||||
elseif msg.video then
|
elseif msg.video then
|
||||||
file_id = msg.video.file_id
|
file_id = msg.video.file_id
|
||||||
file_size = msg.video.file_size
|
file_size = msg.video.file_size
|
||||||
|
elseif msg.video_note then
|
||||||
|
file_id = msg.video_note.file_id
|
||||||
|
file_size = msg.video_note.file_size
|
||||||
elseif msg.sticker then
|
elseif msg.sticker then
|
||||||
file_id = msg.sticker.file_id
|
file_id = msg.sticker.file_id
|
||||||
file_size = msg.sticker.file_size
|
file_size = msg.sticker.file_size
|
||||||
|
Reference in New Issue
Block a user