msg.photo[1].file_id
https://api.telegram.org/file/bot<token>/photos/file
let url = "https://api.telegram.org/file/bot<token>/photos/file";
let arr = url.split("bot");
let result = arr[0] + "bot<token>/" + arr[1].split("/")[1];
console.log(result); // https://api.telegram.org/file/bot<token>/photos