Как в медиагруппе через Telegex.send_media_group отправить локальный файл видео? В ответ упорно приходит ошибка что там не id от телеги или не валидный адрес. Чрез Telegex.send_video отправляется без проблем.
{:error, %Telegex.Error{description: "Bad Request: invalid file HTTP URL specified: URL host is empty", error_code: 400}}
#or
%Telegex.Error{description: "Bad Request: wrong remote file identifier specified: Wrong character in the string", error_code: 400}
video = %Telegex.Type.InputMediaVideo{
has_spoiler: nil,
supports_streaming: nil,
duration: nil,
height: nil,
width: nil,
show_caption_above_media: true,
caption_entities: nil,
parse_mode: nil,
caption: "caption",
thumbnail: nil,
media: "/tmp/video_file-b81ea4709fc3a049eb9a28943c1e3ccf.mp4",
type: "video"
}
photo = %Telegex.Type.InputMediaPhoto{
has_spoiler: nil,
show_caption_above_media: true,
caption_entities: nil,
parse_mode: "HTML",
caption: nil,
media:
"https://url",
type: "photo"
}
Telegex.send_media_group(chat_id, [video, photo])
Документация телеги разрешает любой из трёх вариантов отправки.